You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/db/migrate/20160310163800_user_creatio...

14 lines
663 B

Sequel.migration do
up do
add_column :user_creations, :soft_twitter_datasource_limit, :boolean, null: false, default: false
SequelRails.connection.run('ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit set default false;')
SequelRails.connection.run('ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit set not null;')
end
down do
SequelRails.connection.run('ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit drop not null;')
SequelRails.connection.run('ALTER TABLE user_creations ALTER COLUMN soft_geocoding_limit drop default;')
drop_column :user_creations, :soft_twitter_datasource_limit
end
end