This commit is contained in:
parent
120b3ca206
commit
19a8232c17
@ -20,7 +20,7 @@
|
||||
|
||||
class AddIndexToDmsfFiles < ActiveRecord::Migration
|
||||
|
||||
def chnage
|
||||
def change
|
||||
add_index :dmsf_files, :project_id, name: :index_dmsf_files_on_project_id
|
||||
end
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ class DmsfFileContainer < ActiveRecord::Migration
|
||||
remove_index :dmsf_files, [:container_id, :container_type]
|
||||
remove_column :dmsf_files, :container_type
|
||||
rename_column :dmsf_files, :container_id, :project_id
|
||||
remove_index :dmsf_files, :project_id
|
||||
add_index :dmsf_files, :project_id, name: :index_dmsf_files_on_project_id
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user