cartodb/db/migrate/20140804151839_add_twitter_datasource_fields.rb

22 lines
811 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
add_column :organizations, :twitter_datasource_enabled, :boolean
add_column :organizations, :twitter_datasource_block_price, :integer
add_column :organizations, :twitter_datasource_block_size, :integer
add_column :users, :twitter_datasource_enabled, :boolean
add_column :users, :twitter_datasource_block_price, :integer
add_column :users, :twitter_datasource_block_size, :integer
end
down do
drop_column :organizations, :twitter_datasource_enabled
drop_column :organizations, :twitter_datasource_block_price
drop_column :organizations, :twitter_datasource_block_size
drop_column :users, :twitter_datasource_enabled
drop_column :users, :twitter_datasource_block_price
drop_column :users, :twitter_datasource_block_size
end
end