mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +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
|