cartodb/db/migrate/20130605102802_add_period_end_date_to_users.rb

15 lines
309 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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