Karel Pičman 2018-11-07 17:36:33 +01:00
parent 120b3ca206
commit 19a8232c17
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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