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

16 lines
253 B
Ruby

class ChangeDefaultEnabledInUsersMigration < Sequel::Migration
def up
alter_table(:users) do
set_column_default :enabled, true
end
end
def down
alter_table(:users) do
set_column_default :enabled, false
end
end
end