parent
e297d65aa6
commit
7dfc2baaf4
@ -1,7 +0,0 @@
|
||||
class AddIndexToUser < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
# add_index :users, :login, unique: true
|
||||
# add_index :users, :mail, unique: true
|
||||
# add_index :users, :phone, unique: true
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
class SyncIndexToUsers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_index :users, :login, unique: true
|
||||
add_index :users, :mail, unique: true
|
||||
add_index :users, :phone, unique: true
|
||||
end
|
||||
end
|
Loading…
Reference in new issue