Class: AddCityCountryToEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo_developer/db/migrate/20190220092207_add_city_country_to_events.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
# File 'lib/nexmo_developer/db/migrate/20190220092207_add_city_country_to_events.rb', line 2

def change
  add_column :events, :city, :string
  add_column :events, :country, :string, :limit => 2
end