tracks/db/migrate/021_add_time_zone_preference.rb

12 lines
262 B
Ruby
Raw Normal View History

class AddTimeZonePreference < ActiveRecord::Migration
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