diff --git a/db/migrate/20120822100401_create_dmsf_workflows.rb b/db/migrate/20120822100401_create_dmsf_workflows.rb index 76aa6001..8fe30932 100644 --- a/db/migrate/20120822100401_create_dmsf_workflows.rb +++ b/db/migrate/20120822100401_create_dmsf_workflows.rb @@ -26,7 +26,7 @@ class CreateDmsfWorkflows < ActiveRecord::Migration t.string :name, null: false t.references :project end - add_index :dmsf_workflows, [:name], unique: true, name: :index_dmsf_workflows_on_name + add_index :dmsf_workflows, [:name], unique: true change_table :dmsf_file_revisions do |t| t.references :dmsf_workflow diff --git a/db/migrate/20120822100402_create_dmsf_workflow_steps.rb b/db/migrate/20120822100402_create_dmsf_workflow_steps.rb index 0716f1ad..b72236fd 100644 --- a/db/migrate/20120822100402_create_dmsf_workflow_steps.rb +++ b/db/migrate/20120822100402_create_dmsf_workflow_steps.rb @@ -27,7 +27,7 @@ class CreateDmsfWorkflowSteps < ActiveRecord::Migration t.references :user, null: false t.integer :operator, null: false end - add_index :dmsf_workflow_steps, :dmsf_workflow_id, name: :index_dmsf_workflow_steps_on_dmsf_workflow_id + add_index :dmsf_workflow_steps, :dmsf_workflow_id end end \ No newline at end of file diff --git a/db/migrate/20131108141401_add_index_to_dmsf_files.rb b/db/migrate/20131108141401_add_index_to_dmsf_files.rb index 4b2e542d..917b7c2c 100644 --- a/db/migrate/20131108141401_add_index_to_dmsf_files.rb +++ b/db/migrate/20131108141401_add_index_to_dmsf_files.rb @@ -21,7 +21,7 @@ class AddIndexToDmsfFiles < ActiveRecord::Migration def change - add_index :dmsf_files, :project_id, name: :index_dmsf_files_on_project_id + add_index :dmsf_files, :project_id end end \ No newline at end of file diff --git a/db/migrate/20131108141402_add_index_to_dmsf_folders.rb b/db/migrate/20131108141402_add_index_to_dmsf_folders.rb index 9bf09bcd..8df3c40a 100644 --- a/db/migrate/20131108141402_add_index_to_dmsf_folders.rb +++ b/db/migrate/20131108141402_add_index_to_dmsf_folders.rb @@ -21,7 +21,7 @@ class AddIndexToDmsfFolders < ActiveRecord::Migration def change - add_index :dmsf_folders, :project_id, name: :index_dmsf_folders_on_project_id + add_index :dmsf_folders, :project_id end end \ No newline at end of file diff --git a/db/migrate/20131113141401_add_index_to_dmsf_file_revision.rb b/db/migrate/20131113141401_add_index_to_dmsf_file_revision.rb index 591f242c..e250fe69 100644 --- a/db/migrate/20131113141401_add_index_to_dmsf_file_revision.rb +++ b/db/migrate/20131113141401_add_index_to_dmsf_file_revision.rb @@ -21,7 +21,7 @@ class AddIndexToDmsfFileRevision < ActiveRecord::Migration def change - add_index :dmsf_file_revisions, :dmsf_file_id, name: :index_dmsf_file_revisions_on_dmsf_file_id + add_index :dmsf_file_revisions, :dmsf_file_id end end \ No newline at end of file diff --git a/db/migrate/20131113141402_add_index_to_dmsf_lock.rb b/db/migrate/20131113141402_add_index_to_dmsf_lock.rb index b3a75919..2184eb1b 100644 --- a/db/migrate/20131113141402_add_index_to_dmsf_lock.rb +++ b/db/migrate/20131113141402_add_index_to_dmsf_lock.rb @@ -21,7 +21,7 @@ class AddIndexToDmsfLock < ActiveRecord::Migration def change - add_index :dmsf_locks, :entity_id, name: :index_dmsf_locks_on_entity_id + add_index :dmsf_locks, :entity_id end end \ No newline at end of file diff --git a/db/migrate/20131113141403_create_dmsf_links.rb b/db/migrate/20131113141403_create_dmsf_links.rb index fd0abf08..70686ba6 100644 --- a/db/migrate/20131113141403_create_dmsf_links.rb +++ b/db/migrate/20131113141403_create_dmsf_links.rb @@ -32,7 +32,7 @@ class CreateDmsfLinks < ActiveRecord::Migration t.integer :deleted_by_user_id t.timestamps null: false end - add_index :dmsf_links, :project_id, name: :index_dmsf_links_on_project_id + add_index :dmsf_links, :project_id end end \ No newline at end of file diff --git a/db/migrate/20161223133200_create_dmsf_public_urls.rb b/db/migrate/20161223133200_create_dmsf_public_urls.rb index 2fe50ebe..8575be95 100644 --- a/db/migrate/20161223133200_create_dmsf_public_urls.rb +++ b/db/migrate/20161223133200_create_dmsf_public_urls.rb @@ -28,7 +28,7 @@ class CreateDmsfPublicUrls < ActiveRecord::Migration t.datetime :expire_at, null: false t.timestamps end - add_index :dmsf_public_urls, :token, name: :index_dmsf_public_urls_on_token + add_index :dmsf_public_urls, :token end end \ No newline at end of file diff --git a/db/migrate/20170118142001_dmsf_file_container.rb b/db/migrate/20170118142001_dmsf_file_container.rb index 1dbda708..66c95096 100644 --- a/db/migrate/20170118142001_dmsf_file_container.rb +++ b/db/migrate/20170118142001_dmsf_file_container.rb @@ -26,14 +26,14 @@ class DmsfFileContainer < ActiveRecord::Migration add_column :dmsf_files, :container_type, :string, limit: 30, null: false, default: 'Project' DmsfFile.update_all container_type: 'Project' - add_index :dmsf_files, [:container_id, :container_type], name: :index_dmsf_files_on_container_id_container_type + add_index :dmsf_files, [:container_id, :container_type] end def down remove_index :dmsf_files, [:container_id, :container_type] remove_column :dmsf_files, :container_type rename_column :dmsf_files, :container_id, :project_id - add_index :dmsf_files, :project_id, name: :index_dmsf_files_on_project_id + add_index :dmsf_files, :project_id end end \ No newline at end of file diff --git a/db/migrate/20170330131901_create_dmsf_folder_permissions.rb b/db/migrate/20170330131901_create_dmsf_folder_permissions.rb index 13d65938..e1c5445d 100644 --- a/db/migrate/20170330131901_create_dmsf_folder_permissions.rb +++ b/db/migrate/20170330131901_create_dmsf_folder_permissions.rb @@ -26,7 +26,7 @@ class CreateDmsfFolderPermissions < ActiveRecord::Migration t.integer :object_id, null: false t.string :object_type, limit: 30, null: false end - add_index :dmsf_folder_permissions, :dmsf_folder_id, name: :index_dmsf_folder_permissions_on_dmsf_folder_id + add_index :dmsf_folder_permissions, :dmsf_folder_id end end \ No newline at end of file diff --git a/db/migrate/20170421101901_dmsf_file_container_rollback.rb b/db/migrate/20170421101901_dmsf_file_container_rollback.rb index 2bcaf440..f6ed7f94 100644 --- a/db/migrate/20170421101901_dmsf_file_container_rollback.rb +++ b/db/migrate/20170421101901_dmsf_file_container_rollback.rb @@ -63,7 +63,7 @@ class DmsfFileContainerRollback < ActiveRecord::Migration remove_index :dmsf_files, [:container_id, :container_type] remove_column :dmsf_files, :container_type rename_column :dmsf_files, :container_id, :project_id - add_index :dmsf_files, :project_id, name: :index_dmsf_files_on_project_id + add_index :dmsf_files, :project_id # Initialize system folder_flag to dmsf_folders DmsfFolder.where(id: new_folder_ids).update_all(system: true) end @@ -88,7 +88,7 @@ class DmsfFileContainerRollback < ActiveRecord::Migration end end remove_column :dmsf_files, :project_id # temporarily added for the save method - add_index :dmsf_files, [:container_id, :container_type], name: :index_dmsf_files_on_container_id_container_type + add_index :dmsf_files, [:container_id, :container_type] # dmsf_folders DmsfFolder.where(system: true).delete_all remove_column :dmsf_folders, :system diff --git a/db/migrate/20171110155901_add_index_to_dmsf_folder.rb b/db/migrate/20171110155901_add_index_to_dmsf_folder.rb index d7f86254..07ba83b6 100644 --- a/db/migrate/20171110155901_add_index_to_dmsf_folder.rb +++ b/db/migrate/20171110155901_add_index_to_dmsf_folder.rb @@ -21,7 +21,7 @@ class AddIndexToDmsfFolder < ActiveRecord::Migration def change - add_index :dmsf_folders, :dmsf_folder_id, name: :index_dmsf_folders_on_dmsf_folder_id + add_index :dmsf_folders, :dmsf_folder_id end end \ No newline at end of file