|
|
|
@ -4,10 +4,8 @@ Sequel.migration do
|
|
|
|
|
add_column :builder_enabled, :boolean, null: false, default: false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Rails::Sequel.connection.run('UPDATE users SET builder_enabled = true WHERE builder_enabled IS NULL')
|
|
|
|
|
alter_table :users do
|
|
|
|
|
set_column_default :builder_enabled, false
|
|
|
|
|
set_column_not_null :builder_enabled
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -17,7 +15,6 @@ Sequel.migration do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
alter_table :users do
|
|
|
|
|
set_column_allow_null :builder_enabled
|
|
|
|
|
set_column_default :builder_enabled, true
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|