cartodb-4.42/db/migrate/20110628112715_add_subdomains.rb

16 lines
264 B
Ruby
Raw Normal View History

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