cartodb/db/migrate/20110628112715_add_subdomains.rb

16 lines
264 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
class AddSubdomainsMigration < Sequel::Migration
def up
add_column :users, :subdomain, 'character varying'
alter_table(:users) do
add_index [:subdomain], :unique => true
end
end
def down
drop_column :users, :subdomain
end
end