cartodb/db/migrate/20130605102802_add_period_end_date_to_users.rb
2020-06-15 10:58:47 +08:00

15 lines
309 B
Ruby

class AddPeriodEndDateToUsers < Sequel::Migration
def up
alter_table :users do
add_column :period_end_date, DateTime
set_column_default :period_end_date, Sequel.function(:now)
end
end #up
def down
alter_table :users do
drop_column :period_end_date
end
end #down
end