cartodb-4.29/db/migrate/20161212145833_alter_assets.rb

24 lines
450 B
Ruby
Raw Permalink 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 :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
)