14 lines
663 B
Ruby
14 lines
663 B
Ruby
|
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
|