scinote-web/db/migrate/20151022123530_remove_unique_organization_name_index.rb
2017-06-30 10:23:28 +02:00

11 lines
240 B
Ruby

class RemoveUniqueOrganizationNameIndex < ActiveRecord::Migration[4.2]
def up
remove_index :teams, :name
add_index :teams, :name
end
def down
remove_index :teams, :name
add_index :teams, :name, unique: true
end
end