Change migration, allow users nulls (inherit from org)

pull/10188/head
Javier Torres 8 years ago
parent a9e0180339
commit 977ab27a3f

@ -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

Loading…
Cancel
Save