mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
11 lines
267 B
Ruby
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
|