scinote-web/db/migrate/20151022123530_remove_unique_organization_name_index.rb
2016-02-12 16:52:43 +01:00

11 lines
267 B
Ruby

class RemoveUniqueOrganizationNameIndex < ActiveRecord::Migration
def up
remove_index :organizations, :name
add_index :organizations, :name
end
def down
remove_index :organizations, :name
add_index :organizations, :name, unique: true
end
end