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