cartodb/db/migrate/20161014085122_add_builder_enabled_to_organizations.rb

22 lines
414 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
alter_table :organizations do
add_column :builder_enabled, :boolean, null: false, default: false
end
alter_table :users do
set_column_default :builder_enabled, false
end
end
down do
alter_table :organizations do
drop_column :builder_enabled
end
alter_table :users do
set_column_default :builder_enabled, true
end
end
end