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

24 lines
450 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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
)