tracks/db/migrate/021_add_time_zone_preference.rb

12 lines
267 B
Ruby
Raw Permalink Normal View History

2019-05-13 18:42:57 +02:00
class AddTimeZonePreference < ActiveRecord::Migration[5.2]
def self.up
add_column :preferences, :time_zone, :string, :limit => 255, :default => 'London', :null => false
end
def self.down
remove_column :preferences, :time_zone
end
end