cartodb-4.42/db/migrate/20130605102802_add_period_end_date_to_users.rb
2024-04-06 05:25:13 +00: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