cartodb-4.42/db/migrate/20110712142238_change_default_enabled_in_users.rb

16 lines
253 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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