diff --git a/db/seeds.rb b/db/seeds.rb index 7caedbc8..87bb1400 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -79,7 +79,8 @@ def self.create_default_account_code end def self.create_default_seating_zone - SeatingZone.create!(name: 'Reserved', short_name: 'res') + zone_params = {name: 'Reserved', short_name: 'res'} + SeatingZone.create!(zone_params) unless SeatingZone.find_by(zone_params) end def self.create_options