cartodb/db/migrate/20161108142045_make_widgets_source_id_not_null.rb

17 lines
275 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
alter_table :widgets do
set_column_not_null :source_id
end
end,
Proc.new do
alter_table :widgets do
set_column_allow_null :source_id
end
end
)