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.
15 lines
270 B
15 lines
270 B
4 years ago
|
class RemoveSubdomainFromUsersMigration < Sequel::Migration
|
||
|
|
||
|
def up
|
||
|
drop_column :users, :subdomain
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
add_column :users, :subdomain, 'character varying'
|
||
|
alter_table(:users) do
|
||
|
add_index [:subdomain], :unique => true
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|