diff --git a/app/models/city.rb b/app/models/city.rb index 6772b15..1a9827d 100644 --- a/app/models/city.rb +++ b/app/models/city.rb @@ -1,5 +1,5 @@ class City < ApplicationRecord has_many :reservations, dependent: :destroy - validates :name, presence: true, type: String, length: { minimum: 1 } + validates :name, presence: true, length: { minimum: 1 } end