mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +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
|