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/20161212145833_alter_assets.rb

24 lines
450 B

require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
alter_table :assets do
add_foreign_key :organization_id,
:organizations,
type: 'uuid'
add_index :organization_id
add_column :storage_info, :json
end
end,
Proc.new do
alter_table :assets do
drop_column :organization_id
drop_column :storage_info
end
end
)