Migration: Index and make Procedure.path nonnull
This commit is contained in:
parent
703c436c61
commit
e9c6ed80e4
4 changed files with 11 additions and 3 deletions
6
db/migrate/20190917151652_make_path_nonnull.rb
Normal file
6
db/migrate/20190917151652_make_path_nonnull.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class MakePathNonnull < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column_null :procedures, :path, false
|
||||
add_index :procedures, [:path, :archived_at, :hidden_at], unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue