parent
0b42d2ba32
commit
487e79a7df
@ -0,0 +1,15 @@
|
||||
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
|
Loading…
Reference in new issue