scinote-web/db/migrate/20151022123530_remove_unique_organization_name_index.rb

12 lines
240 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class RemoveUniqueOrganizationNameIndex < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def up
2017-01-26 23:30:31 +08:00
remove_index :teams, :name
add_index :teams, :name
2016-02-12 23:52:43 +08:00
end
def down
2017-01-26 23:30:31 +08:00
remove_index :teams, :name
add_index :teams, :name, unique: true
2016-02-12 23:52:43 +08:00
end
end