14873: Marks past migrations with version 4.2
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 27 Mar 2019 02:41:10 +0000 (23:41 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 27 Mar 2019 02:41:10 +0000 (23:41 -0300)
Rails 5 migration API changes, so to be able to run past migrations
with newer rails, it's required to mark them.
This isn't documented on the Rails 5.0 upgrade notes, but it's mentioned on some
blogs, like this one:

https://blog.bigbinary.com/2016/03/01/migrations-are-versioned-in-rails-5.html

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

184 files changed:
services/api/db/migrate/20121016005009_create_collections.rb
services/api/db/migrate/20130105203021_create_metadata.rb
services/api/db/migrate/20130105224358_rename_metadata_class.rb
services/api/db/migrate/20130105224618_rename_collection_created_by_client.rb
services/api/db/migrate/20130107181109_add_uuid_to_collections.rb
services/api/db/migrate/20130107212832_create_nodes.rb
services/api/db/migrate/20130109175700_create_pipelines.rb
services/api/db/migrate/20130109220548_create_pipeline_invocations.rb
services/api/db/migrate/20130113214204_add_index_to_collections_and_metadata.rb
services/api/db/migrate/20130116024233_create_specimens.rb
services/api/db/migrate/20130116215213_create_projects.rb
services/api/db/migrate/20130118002239_rename_metadata_attributes.rb
services/api/db/migrate/20130122020042_create_users.rb
services/api/db/migrate/20130122201442_create_logs.rb
services/api/db/migrate/20130122221616_add_modified_at_to_logs.rb
services/api/db/migrate/20130123174514_add_uuid_index_to_users.rb
services/api/db/migrate/20130123180224_create_api_clients.rb
services/api/db/migrate/20130123180228_create_api_client_authorizations.rb
services/api/db/migrate/20130125220425_rename_created_by_to_owner.rb
services/api/db/migrate/20130128202518_rename_metadata_to_links.rb
services/api/db/migrate/20130128231343_add_properties_to_specimen.rb
services/api/db/migrate/20130130205749_add_manifest_text_to_collection.rb
services/api/db/migrate/20130203104818_create_jobs.rb
services/api/db/migrate/20130203104824_create_job_steps.rb
services/api/db/migrate/20130203115329_add_priority_to_jobs.rb
services/api/db/migrate/20130207195855_add_index_on_timestamps.rb
services/api/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb
services/api/db/migrate/20130226170000_remove_native_target_from_links.rb
services/api/db/migrate/20130313175417_rename_projects_to_groups.rb
services/api/db/migrate/20130315155820_add_is_locked_by_to_jobs.rb
services/api/db/migrate/20130315183626_add_log_to_jobs.rb
services/api/db/migrate/20130315213205_add_tasks_summary_to_jobs.rb
services/api/db/migrate/20130318002138_add_resource_limits_to_jobs.rb
services/api/db/migrate/20130319165853_rename_job_command_to_script.rb
services/api/db/migrate/20130319180730_rename_pipeline_invocation_to_pipeline_instance.rb
services/api/db/migrate/20130319194637_rename_pipelines_to_pipeline_templates.rb
services/api/db/migrate/20130319201431_rename_job_steps_to_job_tasks.rb
services/api/db/migrate/20130319235957_add_default_owner_to_users.rb
services/api/db/migrate/20130320000107_add_default_owner_to_api_client_authorizations.rb
services/api/db/migrate/20130326173804_create_commits.rb
services/api/db/migrate/20130326182917_create_commit_ancestors.rb
services/api/db/migrate/20130415020241_rename_orvos_to_arvados.rb
services/api/db/migrate/20130425024459_create_keep_disks.rb
services/api/db/migrate/20130425214427_add_service_host_and_service_port_and_service_ssl_flag_to_keep_disks.rb
services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb
services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb
services/api/db/migrate/20130524042319_fix_job_task_qsequence_type.rb
services/api/db/migrate/20130528134100_update_nodes_index.rb
services/api/db/migrate/20130606183519_create_authorized_keys.rb
services/api/db/migrate/20130608053730_create_virtual_machines.rb
services/api/db/migrate/20130610202538_create_repositories.rb
services/api/db/migrate/20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb
services/api/db/migrate/20130612042554_add_name_unique_index_to_repositories.rb
services/api/db/migrate/20130617150007_add_is_trusted_to_api_clients.rb
services/api/db/migrate/20130626002829_add_is_active_to_users.rb
services/api/db/migrate/20130626022810_activate_all_admins.rb
services/api/db/migrate/20130627154537_create_traits.rb
services/api/db/migrate/20130627184333_create_humans.rb
services/api/db/migrate/20130708163414_rename_foreign_uuid_attributes.rb
services/api/db/migrate/20130708182912_rename_job_foreign_uuid_attributes.rb
services/api/db/migrate/20130708185153_rename_user_default_owner.rb
services/api/db/migrate/20130724153034_add_scopes_to_api_client_authorizations.rb
services/api/db/migrate/20131007180607_rename_resource_limits_to_runtime_constraints.rb
services/api/db/migrate/20140117231056_normalize_collection_uuid.rb
services/api/db/migrate/20140124222114_fix_link_kind_underscores.rb
services/api/db/migrate/20140129184311_normalize_collection_uuids_in_script_parameters.rb
services/api/db/migrate/20140317135600_add_nondeterministic_column_to_job.rb
services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
services/api/db/migrate/20140321191343_add_repository_column_to_job.rb
services/api/db/migrate/20140324024606_add_output_is_persistent_to_job.rb
services/api/db/migrate/20140325175653_remove_kind_columns.rb
services/api/db/migrate/20140402001908_add_system_group.rb
services/api/db/migrate/20140407184311_rename_log_info_to_properties.rb
services/api/db/migrate/20140421140924_add_group_class_to_groups.rb
services/api/db/migrate/20140421151939_rename_auth_keys_user_index.rb
services/api/db/migrate/20140421151940_timestamps_not_null.rb
services/api/db/migrate/20140422011506_pipeline_instance_state.rb
services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
services/api/db/migrate/20140423133559_new_scope_format.rb
services/api/db/migrate/20140501165548_add_unique_name_index_to_links.rb
services/api/db/migrate/20140519205916_create_keep_services.rb
services/api/db/migrate/20140527152921_add_description_to_pipeline_templates.rb
services/api/db/migrate/20140530200539_add_supplied_script_version.rb
services/api/db/migrate/20140601022548_remove_name_from_collections.rb
services/api/db/migrate/20140602143352_remove_active_and_success_from_pipeline_instances.rb
services/api/db/migrate/20140607150616_rename_folder_to_project.rb
services/api/db/migrate/20140611173003_add_docker_locator_to_jobs.rb
services/api/db/migrate/20140627210837_anonymous_group.rb
services/api/db/migrate/20140709172343_job_task_serial_qsequence.rb
services/api/db/migrate/20140714184006_empty_collection.rb
services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb
services/api/db/migrate/20140817035914_add_unique_name_constraints.rb
services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb
services/api/db/migrate/20140826180337_remove_output_is_persistent_column.rb
services/api/db/migrate/20140828141043_job_priority_fixup.rb
services/api/db/migrate/20140909183946_add_start_finish_time_to_tasks_and_pipelines.rb
services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb
services/api/db/migrate/20140918153541_add_properties_to_node.rb
services/api/db/migrate/20140918153705_add_state_to_job.rb
services/api/db/migrate/20140924091559_add_job_uuid_to_nodes.rb
services/api/db/migrate/20141111133038_add_arvados_sdk_version_to_jobs.rb
services/api/db/migrate/20141208164553_owner_uuid_index.rb
services/api/db/migrate/20141208174553_descriptions_are_strings.rb
services/api/db/migrate/20141208174653_collection_file_names.rb
services/api/db/migrate/20141208185217_search_index.rb
services/api/db/migrate/20150122175935_no_description_in_search_index.rb
services/api/db/migrate/20150123142953_full_text_search.rb
services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb
services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb
services/api/db/migrate/20150206230342_rename_replication_attributes.rb
services/api/db/migrate/20150216193428_collection_name_owner_unique_only_non_expired.rb
services/api/db/migrate/20150303210106_fix_collection_portable_data_hash_with_hinted_manifest.rb
services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
services/api/db/migrate/20150317132720_add_username_to_users.rb
services/api/db/migrate/20150324152204_backward_compatibility_for_user_repositories.rb
services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb
services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
services/api/db/migrate/20150526180251_leading_space_on_full_text_index.rb
services/api/db/migrate/20151202151426_create_containers_and_requests.rb
services/api/db/migrate/20151215134304_fix_containers_index.rb
services/api/db/migrate/20151229214707_add_exit_code_to_containers.rb
services/api/db/migrate/20160208210629_add_uuid_to_api_client_authorization.rb
services/api/db/migrate/20160209155729_add_uuid_to_api_token_search_index.rb
services/api/db/migrate/20160324144017_add_components_to_job.rb
services/api/db/migrate/20160506175108_add_auths_to_container.rb
services/api/db/migrate/20160509143250_add_auth_and_lock_to_container_index.rb
services/api/db/migrate/20160808151559_create_workflows.rb
services/api/db/migrate/20160819195557_add_script_parameters_digest_to_jobs.rb
services/api/db/migrate/20160819195725_populate_script_parameters_digest.rb
services/api/db/migrate/20160901210110_repair_script_parameters_digest.rb
services/api/db/migrate/20160909181442_rename_workflow_to_definition.rb
services/api/db/migrate/20160926194129_add_container_count.rb
services/api/db/migrate/20161019171346_add_use_existing_to_container_requests.rb
services/api/db/migrate/20161111143147_add_scheduling_parameters_to_container.rb
services/api/db/migrate/20161115171221_add_output_and_log_uuid_to_container_request.rb
services/api/db/migrate/20161115174218_add_output_and_log_uuids_to_container_request_search_index.rb
services/api/db/migrate/20161213172944_full_text_search_indexes.rb
services/api/db/migrate/20161222153434_split_expiry_to_trash_and_delete.rb
services/api/db/migrate/20161223090712_add_output_name_to_container_requests.rb
services/api/db/migrate/20170102153111_add_output_name_to_container_request_search_index.rb
services/api/db/migrate/20170105160301_add_output_name_to_cr_fts_index.rb
services/api/db/migrate/20170105160302_set_finished_at_on_finished_pipeline_instances.rb
services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
services/api/db/migrate/20170301225558_no_downgrade_after_json.rb
services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb
services/api/db/migrate/20170328215436_add_portable_data_hash_index_to_collections.rb
services/api/db/migrate/20170330012505_add_output_ttl_to_container_requests.rb
services/api/db/migrate/20170419173031_add_created_by_job_task_index_to_job_tasks.rb
services/api/db/migrate/20170419173712_add_object_owner_index_to_logs.rb
services/api/db/migrate/20170419175801_add_requesting_container_index_to_container_requests.rb
services/api/db/migrate/20170628185847_jobs_yaml_to_json.rb
services/api/db/migrate/20170704160233_yaml_to_json.rb
services/api/db/migrate/20170706141334_json_collection_properties.rb
services/api/db/migrate/20170824202826_trashable_groups.rb
services/api/db/migrate/20170906224040_materialized_permission_view.rb
services/api/db/migrate/20171027183824_add_index_to_containers.rb
services/api/db/migrate/20171208203841_fix_trash_flag_follow.rb
services/api/db/migrate/20171212153352_add_gin_index_to_collection_properties.rb
services/api/db/migrate/20180216203422_add_storage_classes_to_collections.rb
services/api/db/migrate/20180228220311_add_secret_mounts_to_containers.rb
services/api/db/migrate/20180313180114_change_container_priority_bigint.rb
services/api/db/migrate/20180501182859_add_redirect_to_user_uuid_to_users.rb
services/api/db/migrate/20180514135529_add_container_auth_uuid_index.rb
services/api/db/migrate/20180607175050_properties_to_jsonb.rb
services/api/db/migrate/20180608123145_add_properties_to_groups.rb
services/api/db/migrate/20180806133039_index_all_filenames.rb
services/api/db/migrate/20180820130357_add_pdh_and_trash_index_to_collections.rb
services/api/db/migrate/20180820132617_add_lock_index_to_containers.rb
services/api/db/migrate/20180820135808_drop_pdh_index_from_collections.rb
services/api/db/migrate/20180824152014_add_md5_index_to_containers.rb
services/api/db/migrate/20180824155207_add_queue_index_to_containers.rb
services/api/db/migrate/20180904110712_add_runtime_status_to_containers.rb
services/api/db/migrate/20180913175443_add_version_info_to_collections.rb
services/api/db/migrate/20180915155335_set_current_version_uuid_on_collections.rb
services/api/db/migrate/20180917200000_replace_full_text_indexes.rb
services/api/db/migrate/20180917205609_recompute_file_names_index.rb
services/api/db/migrate/20180919001158_recreate_collection_unique_name_index.rb
services/api/db/migrate/20181001175023_add_preserve_version_to_collections.rb
services/api/db/migrate/20181004131141_add_current_version_uuid_to_collection_search_index.rb
services/api/db/migrate/20181005192222_add_container_runtime_token.rb
services/api/db/migrate/20181011184200_add_runtime_token_to_container.rb
services/api/db/migrate/20181213183234_add_expression_index_to_links.rb
services/api/db/migrate/20190214214814_add_container_lock_count.rb

index 79d7abefa6cb4e9009a7bd5a66f4a0314b34c5b8..f7d53cf457aa4a5797077dad188705563b698050 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateCollections < ActiveRecord::Migration
+class CreateCollections < ActiveRecord::Migration[4.2]
   def change
     create_table :collections do |t|
       t.string :locator
index 63ddf72b4b64103982d32c0bae91cffc37773527..c1f90a97f80fa0207d32d7fe0384789c4bed2580 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateMetadata < ActiveRecord::Migration
+class CreateMetadata < ActiveRecord::Migration[4.2]
   def change
     create_table :metadata do |t|
       t.string :uuid
index dff192ae741c08eeccf0083990fc1c48641a9a5f..cea5d29a2b6b73010b52790abd2441b645b28dd2 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameMetadataClass < ActiveRecord::Migration
+class RenameMetadataClass < ActiveRecord::Migration[4.2]
   def up
     rename_column :metadata, :metadatum_class, :metadata_class
   end
index 7fba042b67ce94a3611d797d3657199bab337549..7e5450f49ff723cbfc8d5eb82a4cbffe1fe8e431 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameCollectionCreatedByClient < ActiveRecord::Migration
+class RenameCollectionCreatedByClient < ActiveRecord::Migration[4.2]
   def up
     rename_column :collections, :create_by_client, :created_by_client
   end
index 614599bbf85c6519bfccd243b0e66f5f13df06c8..ee226394637740a760217124df556aea40effa1b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUuidToCollections < ActiveRecord::Migration
+class AddUuidToCollections < ActiveRecord::Migration[4.2]
   def change
     add_column :collections, :uuid, :string
   end
index dd2ddb30e1e31a85e237ae802b57bb6b01fd0ba1..0bf89ae836a597912088c23e5a35b4cebef1b1b3 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateNodes < ActiveRecord::Migration
+class CreateNodes < ActiveRecord::Migration[4.2]
   def up
     create_table :nodes do |t|
       t.string :uuid
index 5a2d97e59ec918441bb013bb303066cf93dfea61..972712c765e4580f1731df7d4e3c9cf247a9825d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreatePipelines < ActiveRecord::Migration
+class CreatePipelines < ActiveRecord::Migration[4.2]
   def up
     create_table :pipelines do |t|
       t.string :uuid
index bf65b5023d360f20f6c7910e4e169fefcff982b6..b81884a3541f2a9002b5ebb5e59ae52a233a740e 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreatePipelineInvocations < ActiveRecord::Migration
+class CreatePipelineInvocations < ActiveRecord::Migration[4.2]
   def up
     create_table :pipeline_invocations do |t|
       t.string :uuid
index 99eee7b17459cbbc06ff4ad59b99278809d4948e..23fd6c37f7a93582c0462ae057a43b6e561be4dc 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIndexToCollectionsAndMetadata < ActiveRecord::Migration
+class AddIndexToCollectionsAndMetadata < ActiveRecord::Migration[4.2]
   def up
     add_index :collections, :uuid, :unique => true
     add_index :metadata, :uuid, :unique => true
index 75a8ded6f61f91130dac35fd7dfcb80f7f5b5f3e..b644b99cf9c1d05ae069e7723ab5daffdd2e24be 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateSpecimens < ActiveRecord::Migration
+class CreateSpecimens < ActiveRecord::Migration[4.2]
   def up
     create_table :specimens do |t|
       t.string :uuid
index 032405aa17806bdeba823ce617507d2905609dd4..bf362274fc3dc1bfb251b67f9d3569e986287415 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateProjects < ActiveRecord::Migration
+class CreateProjects < ActiveRecord::Migration[4.2]
   def up
     create_table :projects do |t|
       t.string :uuid
index dc4305db6966dd4428fe67d5b74e9fc36c5ab464..049b5e2d639baa303ee36f404defb73482402ed4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameMetadataAttributes < ActiveRecord::Migration
+class RenameMetadataAttributes < ActiveRecord::Migration[4.2]
   def up
     rename_column :metadata, :target_kind, :tail_kind
     rename_column :metadata, :target_uuid, :tail
index 8a95768ff8863ade9c6d5c135a14b4839f03be50..af3457aaa06d3d51a6b2bacbb2085147c60ea6d5 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateUsers < ActiveRecord::Migration
+class CreateUsers < ActiveRecord::Migration[4.2]
   def change
     create_table :users do |t|
       t.string :uuid
index 195becb9bcaed83da444398290e018fe89a55afd..9ebc676e3896f4dfbca7ced39efa0abf70088c6b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateLogs < ActiveRecord::Migration
+class CreateLogs < ActiveRecord::Migration[4.2]
   def up
     create_table :logs do |t|
       t.string :uuid
index 4e98c7ecbd79e339bd04f2224bb3494a9612b7ba..5b0b76cff713f6a56fd89040e3967888c752313d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddModifiedAtToLogs < ActiveRecord::Migration
+class AddModifiedAtToLogs < ActiveRecord::Migration[4.2]
   def change
     add_column :logs, :modified_at, :datetime
   end
index 46d87c553deb7375649e44bfb16900f48f95312d..96b1769d1ceafae48f85de91ab24fdc44f5add00 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUuidIndexToUsers < ActiveRecord::Migration
+class AddUuidIndexToUsers < ActiveRecord::Migration[4.2]
   def change
     add_index :users, :uuid, :unique => true
   end
index 326e09d01a0278d26df28d8de3f1bec9496d5a29..c0f3efc81198e89125d86d78e8685a4ad52be0d6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateApiClients < ActiveRecord::Migration
+class CreateApiClients < ActiveRecord::Migration[4.2]
   def change
     create_table :api_clients do |t|
       t.string :uuid
index 7a1810971876df18fee3664c032bd5cb283d0918..2385c70ff10d1bcb45433292af742107767577cb 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateApiClientAuthorizations < ActiveRecord::Migration
+class CreateApiClientAuthorizations < ActiveRecord::Migration[4.2]
   def change
     create_table :api_client_authorizations do |t|
       t.string :api_token, :null => false
index 9a31222e2411ca6218c05bd010fa72f05a736c6a..7be89a178e134d26ab79600ec41ec9cae29ffa7a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameCreatedByToOwner < ActiveRecord::Migration
+class RenameCreatedByToOwner < ActiveRecord::Migration[4.2]
   def tables
     %w{api_clients collections logs metadata nodes pipelines pipeline_invocations projects specimens users}
   end
index f3e6b450df03ba0088c48bfcd46993de3ab51b38..b46a459e53feb62f2e33a172bae1a19edd18a392 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameMetadataToLinks < ActiveRecord::Migration
+class RenameMetadataToLinks < ActiveRecord::Migration[4.2]
   def up
     rename_table :metadata, :links
     rename_column :links, :tail, :tail_uuid
index 78ba71e41ec28ed55ae5e48560139d9301e16980..36ef2f4b0b79e2ab0403cf185bd51c29ab9bfb76 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPropertiesToSpecimen < ActiveRecord::Migration
+class AddPropertiesToSpecimen < ActiveRecord::Migration[4.2]
   def change
     add_column :specimens, :properties, :text
   end
index ca2441ae85287dbb490d1a0fb3c4a591d02f91c9..cb00d2fe7d65af7d8c05d9b4c142e6f60b276d70 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddManifestTextToCollection < ActiveRecord::Migration
+class AddManifestTextToCollection < ActiveRecord::Migration[4.2]
   def change
     add_column :collections, :manifest_text, :text
   end
index ab069563e9109cbab35ea86219f2ea775cc3d457..cb0c519935d3d140c14f894bcf221ac08071391a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateJobs < ActiveRecord::Migration
+class CreateJobs < ActiveRecord::Migration[4.2]
   def change
     create_table :jobs do |t|
       t.string :uuid
index 37c821cc903fe7e52f144ac0c1c139131df29dd2..19cc08ba804a000bf182b0dd472c0f3239dc484a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateJobSteps < ActiveRecord::Migration
+class CreateJobSteps < ActiveRecord::Migration[4.2]
   def change
     create_table :job_steps do |t|
       t.string :uuid
index a92e92b4a211dfb2b6b7c1cdec166238feb01abb..63a2e2e4bbeef60dafa519aca600a21e26ddc1f6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPriorityToJobs < ActiveRecord::Migration
+class AddPriorityToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :priority, :string
   end
index 0a0154d46d6c2cd4568c488a7ab6eb037332120c..a009db145955da5c792f4a13e3c6379792a416e3 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIndexOnTimestamps < ActiveRecord::Migration
+class AddIndexOnTimestamps < ActiveRecord::Migration[4.2]
   def tables
     %w{api_clients collections jobs job_steps links logs nodes pipeline_invocations pipelines projects specimens users}
   end
index 453e13474047419d5b2c73674da411140203a789..fef4a5a5b856c02df72789b794d83af2cbd768ef 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPropertiesToPipelineInvocations < ActiveRecord::Migration
+class AddPropertiesToPipelineInvocations < ActiveRecord::Migration[4.2]
   def change
     add_column :pipeline_invocations, :properties, :text
   end
index 4cecd0ec0095eb4c2ba26be058b53b3c0b996229..8c8779d4010aef53589d6069fdefa79b8235ddf6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveNativeTargetFromLinks < ActiveRecord::Migration
+class RemoveNativeTargetFromLinks < ActiveRecord::Migration[4.2]
   def up
     remove_column :links, :native_target_id
     remove_column :links, :native_target_type
index 602c8b4fcb3302f0178f1b29c5ac0e5fbbedc31b..0e916218522927d04c9b46d5d11fe6c4b222a9ca 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameProjectsToGroups < ActiveRecord::Migration
+class RenameProjectsToGroups < ActiveRecord::Migration[4.2]
   def up
     rename_table :projects, :groups
     rename_index :groups, :index_projects_on_created_at, :index_groups_on_created_at
index 8ea3657afe556c2801573a7745fb45d98d385d93..a1047960a1449a2ac47ae64e9946a8d161f1d4ba 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIsLockedByToJobs < ActiveRecord::Migration
+class AddIsLockedByToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :is_locked_by, :string
   end
index aa30165fd6025b12bcf998e8a1b15c4078e806c3..3003387d6cd42132903585f1c2e364e8385145d8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddLogToJobs < ActiveRecord::Migration
+class AddLogToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :log, :string
   end
index 9a64feac2d3f7f49606b8a93fdd9eccfc20ddea0..92f240a330d4d431913a8a7e9c5b04c1945881a4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddTasksSummaryToJobs < ActiveRecord::Migration
+class AddTasksSummaryToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :tasks_summary, :text
   end
index aae3ff2aca44ee3b1aba65c6f0190162ce3a09fa..b3d6e587c5f311468b95c86b7fa81871c6fad3b1 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddResourceLimitsToJobs < ActiveRecord::Migration
+class AddResourceLimitsToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :resource_limits, :text
   end
index 8606698b60545f714d0fe1ecb553cffb5bc4f4c4..0e8ab5ab0bc4a3ff13e4d08023d275114ddc84d5 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameJobCommandToScript < ActiveRecord::Migration
+class RenameJobCommandToScript < ActiveRecord::Migration[4.2]
   def up
     rename_column :jobs, :command, :script
     rename_column :jobs, :command_parameters, :script_parameters
index 61cc2778eb55f62002f654af7b8a42d0e66fbc67..8ad26870bdd85cb2cf8d55b8bb2cbd149d522089 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenamePipelineInvocationToPipelineInstance < ActiveRecord::Migration
+class RenamePipelineInvocationToPipelineInstance < ActiveRecord::Migration[4.2]
   def up
     rename_table :pipeline_invocations, :pipeline_instances
     rename_index :pipeline_instances, :index_pipeline_invocations_on_created_at, :index_pipeline_instances_on_created_at
index 012a86a2b4948c8d8aadd2e58ebb59d7d2bfe07e..eea3444bab68ffd30c258d3a7434169db2bb06a3 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenamePipelinesToPipelineTemplates < ActiveRecord::Migration
+class RenamePipelinesToPipelineTemplates < ActiveRecord::Migration[4.2]
   def up
     rename_column :pipeline_instances, :pipeline_uuid, :pipeline_template_uuid
     rename_table :pipelines, :pipeline_templates
index 05d9ffb2c58ff018cea3b1551b82af8a4982b398..96f3ff28a0b484bb3cabfc87ca95d822f562eb37 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameJobStepsToJobTasks < ActiveRecord::Migration
+class RenameJobStepsToJobTasks < ActiveRecord::Migration[4.2]
   def up
     rename_table :job_steps, :job_tasks
     rename_index :job_tasks, :index_job_steps_on_created_at, :index_job_tasks_on_created_at
index 935ce46d6c7d6cc363d2c48003920864573d6396..feb5b3efebd1e19750746a53e296592faa06a848 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddDefaultOwnerToUsers < ActiveRecord::Migration
+class AddDefaultOwnerToUsers < ActiveRecord::Migration[4.2]
   def change
     add_column :users, :default_owner, :string
   end
index 0f2b18f9c88d8a5e7dff8c33fce6f12abd1cc32b..0ccd301808f524b39772bea169ba5954c51ef01a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddDefaultOwnerToApiClientAuthorizations < ActiveRecord::Migration
+class AddDefaultOwnerToApiClientAuthorizations < ActiveRecord::Migration[4.2]
   def change
     add_column :api_client_authorizations, :default_owner, :string
   end
index 972a61f52c58f94bef07377746633f1c7f7abfb5..6e42828dc838b82f18bca8875173c500a6e797db 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateCommits < ActiveRecord::Migration
+class CreateCommits < ActiveRecord::Migration[4.2]
   def change
     create_table :commits do |t|
       t.string :repository_name
index d63b2a6ebd1aa6014398cd13e1bf98dfec130a1e..59fc3c253ff4e360225573036974f3ac8ae7a2e6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateCommitAncestors < ActiveRecord::Migration
+class CreateCommitAncestors < ActiveRecord::Migration[4.2]
   def change
     create_table :commit_ancestors do |t|
       t.string :repository_name
index ed66bc7546a0f622536669d5a593305e1e3c7e1e..46c9e848c42d279a99fb6116db167c71b2799ab1 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameOrvosToArvados < ActiveRecord::Migration
+class RenameOrvosToArvados < ActiveRecord::Migration[4.2]
   def up
     Link.update_all("head_kind=replace(head_kind,'orvos','arvados')")
     Link.update_all("tail_kind=replace(tail_kind,'orvos','arvados')")
index 79c33db20224025b09a79335f4f3cb12c3742375..1e21464c60d5a28b5bca1e152460b7cb0e85b851 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateKeepDisks < ActiveRecord::Migration
+class CreateKeepDisks < ActiveRecord::Migration[4.2]
   def change
     create_table :keep_disks do |t|
       t.string :uuid, :null => false
index 5a815126f323f0987a34e9aaea5c84733045faeb..9f08a3ce1ff74c90ab3a989f76f98a820e4fd9bb 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddServiceHostAndServicePortAndServiceSslFlagToKeepDisks < ActiveRecord::Migration
+class AddServiceHostAndServicePortAndServiceSslFlagToKeepDisks < ActiveRecord::Migration[4.2]
   def change
     add_column :keep_disks, :service_host, :string
     add_column :keep_disks, :service_port, :integer
index 2f10e1cca1ca8982b985e173b9790bfcecead50b..23461b438ac0574984d02d213170cc410dc0cd4d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddCreatedByJobTaskToJobTasks < ActiveRecord::Migration
+class AddCreatedByJobTaskToJobTasks < ActiveRecord::Migration[4.2]
   def change
     add_column :job_tasks, :created_by_job_task, :string
   end
index 84a2df2930a7e6244d72747261cef616d026ec75..8caa39c33cb708d1df6ef0783e376bbfb6c337c1 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddQsequenceToJobTasks < ActiveRecord::Migration
+class AddQsequenceToJobTasks < ActiveRecord::Migration[4.2]
   def change
     add_column :job_tasks, :qsequence, :integer
   end
index 91652f5af72137220e17f5d6ac7c4c45b7dc6d13..e7bcd656ac4455bf86f7fd7f8eb42c7cd5a1008d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FixJobTaskQsequenceType < ActiveRecord::Migration
+class FixJobTaskQsequenceType < ActiveRecord::Migration[4.2]
   def up
     change_column :job_tasks, :qsequence, :integer, :limit => 8
   end
index 94ea67d97cee143a6f96f844f7000cd460ef6405..5873eaa002e32a8d123504de5ea235ec36788cf2 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class UpdateNodesIndex < ActiveRecord::Migration
+class UpdateNodesIndex < ActiveRecord::Migration[4.2]
   def up
     remove_index :nodes, :hostname
     add_index :nodes, :hostname
index daeabb372467c3722cdbf2b19c0717b0a1da00c0..d9e4e542bff1ff3df49d63b682dfacb3981353c5 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateAuthorizedKeys < ActiveRecord::Migration
+class CreateAuthorizedKeys < ActiveRecord::Migration[4.2]
   def change
     create_table :authorized_keys do |t|
       t.string :uuid, :null => false
index 97ecb73e95bce8682be984851b1dd2fff4132d6c..8a9a74002bf36a970c4a2d6dd85ae93bc0490503 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateVirtualMachines < ActiveRecord::Migration
+class CreateVirtualMachines < ActiveRecord::Migration[4.2]
   def change
     create_table :virtual_machines do |t|
       t.string :uuid, :null => false
index 6e8c9472618269a8b84d042f91169a1c9c9ae364..3f6df0527f57118480af16d51aae3abdd34d5a88 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateRepositories < ActiveRecord::Migration
+class CreateRepositories < ActiveRecord::Migration[4.2]
   def change
     create_table :repositories do |t|
       t.string :uuid, :null => false
index 1e5f6cca7b7d626d25b5c4f33feecb183edf48ad..a101480d0bf21857867707c7ec507346ac4a6213 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameAuthorizedKeyAuthorizedUserToAuthorizedUserUuid < ActiveRecord::Migration
+class RenameAuthorizedKeyAuthorizedUserToAuthorizedUserUuid < ActiveRecord::Migration[4.2]
   def up
     remove_index :authorized_keys, [:authorized_user, :expires_at]
     rename_column :authorized_keys, :authorized_user, :authorized_user_uuid
index bb5767d79d2e09e8d7b3831b1d8c9661aebe5d12..fb62439723cfaf28eab75285e2bf8671b887025c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddNameUniqueIndexToRepositories < ActiveRecord::Migration
+class AddNameUniqueIndexToRepositories < ActiveRecord::Migration[4.2]
   def up
     remove_index :repositories, :name
     add_index :repositories, :name, :unique => true
index e74acbca81051f63d88a08d913e5c1749f624e18..15ea0384854a6d2892dbe280624f68b31f2a33ae 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIsTrustedToApiClients < ActiveRecord::Migration
+class AddIsTrustedToApiClients < ActiveRecord::Migration[4.2]
   def change
     add_column :api_clients, :is_trusted, :boolean, :default => false
   end
index 754ae6a44ff563c13517cd53f447ac0ffb2ce68d..91a69b3b68816f39445a38d7d81af7e9eff25c95 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIsActiveToUsers < ActiveRecord::Migration
+class AddIsActiveToUsers < ActiveRecord::Migration[4.2]
   def change
     add_column :users, :is_active, :boolean, :default => false
   end
index 9986a3052d3c020103f1629166f4feb626a38d2a..eb88373121eb01e4ab643e70a2845a46c829ac54 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ActivateAllAdmins < ActiveRecord::Migration
+class ActivateAllAdmins < ActiveRecord::Migration[4.2]
   def up
     User.update_all({is_active: true}, ['is_admin=?', true])
   end
index 6dc677d26b77ce65290b5f894cf0009ea6fc9984..d1491377d4220b6265e51e22e00223f0f3980cba 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateTraits < ActiveRecord::Migration
+class CreateTraits < ActiveRecord::Migration[4.2]
   def change
     create_table :traits do |t|
       t.string :uuid, :null => false
index 4d8e1d2c5a8f6046c95fe7c0bc002263bbd45028..c316e92d84f6d6cc44063d4b4220acc2643792cd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateHumans < ActiveRecord::Migration
+class CreateHumans < ActiveRecord::Migration[4.2]
   def change
     create_table :humans do |t|
       t.string :uuid, :null => false
index fa179da8019053b1a82ccb1b3cd3546fbb028710..957aa58e8fd9a32dbb060a0c8dda542f3266a450 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameForeignUuidAttributes < ActiveRecord::Migration
+class RenameForeignUuidAttributes < ActiveRecord::Migration[4.2]
   def change
     rename_column :api_client_authorizations, :default_owner, :default_owner_uuid
     [:api_clients, :authorized_keys, :collections,
index e56f3133ace83623afff7860e677bd7d628978c1..655fff77aa9edfd5aad38b778c01b564dbfe33d4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameJobForeignUuidAttributes < ActiveRecord::Migration
+class RenameJobForeignUuidAttributes < ActiveRecord::Migration[4.2]
   def change
     rename_column :jobs, :cancelled_by_client, :cancelled_by_client_uuid
     rename_column :jobs, :cancelled_by_user, :cancelled_by_user_uuid
index 10dadc43c736651ff93b614a1bb29baefe10c13a..c40ef46a6a14c634dbf84bc0698b6254c6aba46c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameUserDefaultOwner < ActiveRecord::Migration
+class RenameUserDefaultOwner < ActiveRecord::Migration[4.2]
   def change
     rename_column :users, :default_owner, :default_owner_uuid
   end
index 43a32716dd857fa0da1176db78704be47c595449..cef3a35da17459d1ff5894ab875309ffcef28c9c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddScopesToApiClientAuthorizations < ActiveRecord::Migration
+class AddScopesToApiClientAuthorizations < ActiveRecord::Migration[4.2]
   def change
     add_column :api_client_authorizations, :scopes, :text, :null => false, :default => ['all'].to_yaml
   end
index 2fe28c3d1c9e57cea45f563867bea8abc0aa28f5..d77f29a1d658459091f3c7993c102257d3c441fb 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameResourceLimitsToRuntimeConstraints < ActiveRecord::Migration
+class RenameResourceLimitsToRuntimeConstraints < ActiveRecord::Migration[4.2]
   def change
     rename_column :jobs, :resource_limits, :runtime_constraints
   end
index c28c26859f2fe14101960aed7910157156256099..b9e933e2bff83f20f5386071d52a0d9bfa698ec8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NormalizeCollectionUuid < ActiveRecord::Migration
+class NormalizeCollectionUuid < ActiveRecord::Migration[4.2]
   def count_orphans
     %w(head tail).each do |ht|
       results = ActiveRecord::Base.connection.execute(<<-EOS)
index 90dbd6ef6a284fa2efad98292c9e2dc78c357762..fb7bff666ec2bb0621acdf471afd8873db6955b9 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FixLinkKindUnderscores < ActiveRecord::Migration
+class FixLinkKindUnderscores < ActiveRecord::Migration[4.2]
   def up
     update_sql <<-EOS
 UPDATE links
index a54c4cc20debf664929d08f6b67b335f593ee624..9f5ade29ff175f54e7c28d8c0cb491847c3b39d7 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NormalizeCollectionUuidsInScriptParameters < ActiveRecord::Migration
+class NormalizeCollectionUuidsInScriptParameters < ActiveRecord::Migration[4.2]
   include CurrentApiClient
   def up
     act_as_system_user do
index ccf6210bf8aba006bbcf44d382231635c8f75ae5..e2febf85a9084ca2c3f4dc4b3e9e63b1ee2508e1 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddNondeterministicColumnToJob < ActiveRecord::Migration
+class AddNondeterministicColumnToJob < ActiveRecord::Migration[4.2]
   def up
     add_column :jobs, :nondeterministic, :boolean
   end
index fc09892ec8d472020e1e0477e91bfd15c7a2f41b..38a4a264a3f7785d0384b6b812b049910aeb2b71 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SeparateRepositoryFromScriptVersion < ActiveRecord::Migration
+class SeparateRepositoryFromScriptVersion < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def fixup pt
index 5e2b6369234c1cec085adfbb3f354c48bd78ffb8..243df8d15077c40fc7e1d5731b9e26f5960f967c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddRepositoryColumnToJob < ActiveRecord::Migration
+class AddRepositoryColumnToJob < ActiveRecord::Migration[4.2]
   def up
     add_column :jobs, :repository, :string
   end
index a66d92ece199a1a1eefc3be60bde31cf1a2cca9d..04a94d8e82f92b89cf0dfc1990b02a4f2bc8b3c7 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputIsPersistentToJob < ActiveRecord::Migration
+class AddOutputIsPersistentToJob < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :output_is_persistent, :boolean, null: false, default: false
   end
index b4085ba92eb5c0af384abdfc04eff45086fb7340..3303fd9db160bed31df7da47a289879c62d77932 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveKindColumns < ActiveRecord::Migration
+class RemoveKindColumns < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 33bdd418ef536c4e85243e9f8996da7061b4b5e4..f356c055134a64fa97b577f41dd2a94b5215a5d7 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddSystemGroup < ActiveRecord::Migration
+class AddSystemGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 3d93ce538abfa6d506684be2e203b30d04b7bd5b..35fabeacb5e8ac13987e0f6811eebdbd7c72f276 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameLogInfoToProperties < ActiveRecord::Migration
+class RenameLogInfoToProperties < ActiveRecord::Migration[4.2]
   def change
     rename_column :logs, :info, :properties
   end
index ef6213926ffff25e2baf268a649c3f546a5b28c8..de126a2925583c7af5f69257f682e31ba1077e99 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddGroupClassToGroups < ActiveRecord::Migration
+class AddGroupClassToGroups < ActiveRecord::Migration[4.2]
   def change
     add_column :groups, :group_class, :string
     add_index :groups, :group_class
index fd140745344bca4b7c8ead0cd11756a12cd338a2..4cabfacd29a22160e3cf6f8a5b3fe13e6c66ad52 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameAuthKeysUserIndex < ActiveRecord::Migration
+class RenameAuthKeysUserIndex < ActiveRecord::Migration[4.2]
   # Rails' default name for this index is so long, Rails can't modify
   # the index later, because the autogenerated temporary name exceeds
   # PostgreSQL's 64-character limit.  This migration gives the index
index 4426befef1beb034febdcb6663cfb4f36a474100..6fbd10f1a4756d53cc03bc81ea1bf06e6d5b4982 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class TimestampsNotNull < ActiveRecord::Migration
+class TimestampsNotNull < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.tables.each do |t|
       next if t == 'schema_migrations'
index db84c2cfab6ca5f5f629d18ace8021ffebc3ca99..89a48d094a14c7d5fe569b607ecc311d3710fd23 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class PipelineInstanceState < ActiveRecord::Migration
+class PipelineInstanceState < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 428ea57a6a78236da055b593e8e5b954e59af096..b1b679d6456f5680789b2c2331d34cca6ccf3c83 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddObjectOwnerToLogs < ActiveRecord::Migration
+class AddObjectOwnerToLogs < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index b706edb7f197a4bd3a5cb9409bf8522486f5ab2c..6c1dc74529f4f94d231b1ff2a1319b1ef901c491 100644 (file)
@@ -7,7 +7,7 @@
 # login list.  This migration converts those VM-specific scopes to the new
 # general format, and back.
 
-class NewScopeFormat < ActiveRecord::Migration
+class NewScopeFormat < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   VM_PATH_REGEX =
index c7f6e7a85d644921697f6701021e8af9d1fe74f3..9c177f788ab2f6d5b340f6a1788d77c8a581f52b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUniqueNameIndexToLinks < ActiveRecord::Migration
+class AddUniqueNameIndexToLinks < ActiveRecord::Migration[4.2]
   def change
     # Make sure PgPower is here. Otherwise the "where" will be ignored
     # and we'll end up with a far too restrictive unique
index e6cb967538cbd3a5ed91c43812c81fa701951dff..8ee3b4972ee01ac1193a6be121cefa5b033740da 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateKeepServices < ActiveRecord::Migration
+class CreateKeepServices < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def change
index 09e2ce13824cd3e5f4938c66e455fb9c194d08d6..bc9b50ea3aef4f96cf9896b16d1ace347f503e27 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddDescriptionToPipelineTemplates < ActiveRecord::Migration
+class AddDescriptionToPipelineTemplates < ActiveRecord::Migration[4.2]
   def change
     add_column :pipeline_templates, :description, :text
   end
index 62b1df08739058ebdc8b0f13bd074b79c63d16eb..a828f7d1779940d14b67a1d75a0b3c8207edcde4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddSuppliedScriptVersion < ActiveRecord::Migration
+class AddSuppliedScriptVersion < ActiveRecord::Migration[4.2]
   def up
     add_column :jobs, :supplied_script_version, :string
   end
index d76ac930c6e9868c838b5a35e2854efc9898a0b3..3d08e0f5b3529e319e0d153c3690b081ec431efd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveNameFromCollections < ActiveRecord::Migration
+class RemoveNameFromCollections < ActiveRecord::Migration[4.2]
   def up
     remove_column :collections, :name
   end
index 511138ff5d987df90ada344fba628519a6891d69..46a653d1eab1e6261cf0112985091e0dc744fa95 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveActiveAndSuccessFromPipelineInstances < ActiveRecord::Migration
+class RemoveActiveAndSuccessFromPipelineInstances < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index f6daa9788baf760817a0ef4f5b89436a72381346..06c7e36220fcb4761963ebb51e0ed08603d46559 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameFolderToProject < ActiveRecord::Migration
+class RenameFolderToProject < ActiveRecord::Migration[4.2]
   def up
     Group.update_all("group_class = 'project'", "group_class = 'folder'")
   end
index 2be03f5fcd0974f79ddf849faa787cf24fe8ed0f..ed55f1320a91f3ba14d057b8c980805f3ffb7a04 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddDockerLocatorToJobs < ActiveRecord::Migration
+class AddDockerLocatorToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :docker_image_locator, :string
   end
index cd49da426b1ac6f9bddd932f755e9d7bface4e06..8be5f666e3a08a95e90e7dad433c2a3a2978deca 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AnonymousGroup < ActiveRecord::Migration
+class AnonymousGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 53e087a1f1b233d7167b28923d4827a3425d22b2..2990621413d37a3b70afc2f3fd0ff283baf97162 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class JobTaskSerialQsequence < ActiveRecord::Migration
+class JobTaskSerialQsequence < ActiveRecord::Migration[4.2]
   SEQ_NAME = "job_tasks_qsequence_seq"
 
   def up
index 0c0eba6bdf9281ca209f24b795c6ea9f15a52d59..33921dcdeaeaecd8c9e874152cbd2f22788ac525 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class EmptyCollection < ActiveRecord::Migration
+class EmptyCollection < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 003f74b1363653c4627668010afdd31546dfabf3..62ef93f8c5019fdc34bfc7b920f5a0f76aa10623 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CollectionUseRegularUuids < ActiveRecord::Migration
+class CollectionUseRegularUuids < ActiveRecord::Migration[4.2]
   def up
     add_column :collections, :name, :string
     add_column :collections, :description, :string
index a226836b6b6aa29766ec8098a9897acfe0bf9318..8acae9f20345977611a1000d75c63f08099ac5ef 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUniqueNameConstraints < ActiveRecord::Migration
+class AddUniqueNameConstraints < ActiveRecord::Migration[4.2]
   def change
     # Ensure uniqueness before adding constraints.
     ["collections", "pipeline_templates", "groups"].each do |table|
index 13224205e6df8c904749a3cada55a5c410ba7613..9f003ba8d6ca884116b0a540898659981562f41b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddNotNullConstraintToGroupName < ActiveRecord::Migration
+class AddNotNullConstraintToGroupName < ActiveRecord::Migration[4.2]
   def change
     ActiveRecord::Base.connection.execute("update groups set name=uuid where name is null or name=''")
     change_column_null :groups, :name, false
index dbb4c06d74958b9c096dddc63d34d7079fa32541..453ce90fdb34e1ba8526cae7fd99ab2d240c921e 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveOutputIsPersistentColumn < ActiveRecord::Migration
+class RemoveOutputIsPersistentColumn < ActiveRecord::Migration[4.2]
   def up
     remove_column :jobs, :output_is_persistent
   end
index 87f29b635b737d0499382588b82bddd747326abd..e780d19fcb56d3d150f39c0060328dc11b52cf3d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class JobPriorityFixup < ActiveRecord::Migration
+class JobPriorityFixup < ActiveRecord::Migration[4.2]
   def up
     remove_column :jobs, :priority
     add_column :jobs, :priority, :integer, null: false, default: 0
index df64127f90dc4bd19abe9a6a2edbe5e0fc4bbdea..85d639492982526433eb9ccb9750d41cc1210d66 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddStartFinishTimeToTasksAndPipelines < ActiveRecord::Migration
+class AddStartFinishTimeToTasksAndPipelines < ActiveRecord::Migration[4.2]
   def up
     add_column :job_tasks, :started_at, :datetime
     add_column :job_tasks, :finished_at, :datetime
index 1ac030bad3d79f2cdb127d73e300e56a9b0414f5..9a2c49dd6abe6860c129474a6b642ac03636ca55 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddDescriptionToPipelineInstancesAndJobs < ActiveRecord::Migration
+class AddDescriptionToPipelineInstancesAndJobs < ActiveRecord::Migration[4.2]
   def up
     add_column :pipeline_instances, :description, :text, null: true
     add_column :jobs, :description, :text, null: true
index c111708e9b929e6882015ce428a318a1d2948074..96cf00bbce83e841d74418b43ab04615e3378124 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
+class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 513ca04cb4ac0c005f96ecd83e9575cc68c8b27f..c7203183734361be05c11f1ce1d7e81309cd4784 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPropertiesToNode < ActiveRecord::Migration
+class AddPropertiesToNode < ActiveRecord::Migration[4.2]
   def up
     add_column :nodes, :properties, :text
   end
index 77310d3ac95ac315a06134f48834fea267a43313..46a5e84362402d0f4e16086e33a7ffbb7fee7b9c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddStateToJob < ActiveRecord::Migration
+class AddStateToJob < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index 55378d7131f283f191f7d90edead688ace4ce3d3..e7876c68b2e5f7ac2563cb8bd483767deb54c00a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddJobUuidToNodes < ActiveRecord::Migration
+class AddJobUuidToNodes < ActiveRecord::Migration[4.2]
   def up
     change_table :nodes do |t|
       t.column :job_uuid, :string
index c0e3b3ba0766a0128e83266787a9a2132bd1251b..ba89a189a57c8162cf1725a7f2c9c9314773af49 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddArvadosSdkVersionToJobs < ActiveRecord::Migration
+class AddArvadosSdkVersionToJobs < ActiveRecord::Migration[4.2]
   def up
     change_table :jobs do |t|
       t.column :arvados_sdk_version, :string
index a6d4e76404c1c14d4d6452fff4a984ca9eaaba15..a3f68954b23a12d4d9668ab1d19730a6e7795ff7 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class OwnerUuidIndex < ActiveRecord::Migration
+class OwnerUuidIndex < ActiveRecord::Migration[4.2]
   def tables_with_owner_uuid
     %w{api_clients authorized_keys collections groups humans
        job_tasks jobs keep_disks keep_services links logs
index 554474d33ddd2d6a6f64a02d61cddefacdc81582..1cd66291203e717dbd4f3474f4c9f7167e3237f8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class DescriptionsAreStrings < ActiveRecord::Migration
+class DescriptionsAreStrings < ActiveRecord::Migration[4.2]
   def tables_with_description_column
     %w{collections groups jobs pipeline_instances pipeline_templates}
   end
index 50ab30c39a89b4955f7cc943502211d2ec7112d9..7abd778c045d75f15d5ce41e10d6a027d88c56c4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CollectionFileNames < ActiveRecord::Migration
+class CollectionFileNames < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index c8e9fef872d5b0ecaf463624c7b03cc040372240..abea1915facdaa9bde473798773a3a5e0f2bee7c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SearchIndex < ActiveRecord::Migration
+class SearchIndex < ActiveRecord::Migration[4.2]
   def tables_with_searchable_columns
     {
       "api_client_authorizations" => ["api_token", "created_by_ip_address", "last_used_by_ip_address", "default_owner_uuid"],
index 7371b0ea53ffaae15f5d6b3409d60977f75b4b73..6a296031460df3650b2e17fc3ef1670ac48e8294 100644 (file)
@@ -8,7 +8,7 @@
 
 require "./db/migrate/20141208185217_search_index.rb"
 
-class NoDescriptionInSearchIndex < ActiveRecord::Migration
+class NoDescriptionInSearchIndex < ActiveRecord::Migration[4.2]
   def up
     all_tables = %w{collections groups jobs pipeline_instances pipeline_templates}
     all_tables.each do |table|
index b9b56a53cbbcc66e268a3b27ed2c632a2a58fb38..39a62fcaffbe1ff96518fbcdcad1ccecdb2b3d6d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FullTextSearch < ActiveRecord::Migration
+class FullTextSearch < ActiveRecord::Migration[4.2]
 
   def up
     execute "CREATE INDEX collections_full_text_search_idx ON collections USING gin(#{Collection.full_text_tsvector});"
index 03e7fbba5daad0cfedb0a24c6e2357412998fd62..71f769c157c96ca4ba60d6b94244d99d54c810ad 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SetGroupClassOnAnonymousGroup < ActiveRecord::Migration
+class SetGroupClassOnAnonymousGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
   def up
     act_as_system_user do
index ea9f393540490f93b9692d2cfd085fc175e3ecec..745833003dd4a25a7dec095656bcdf6f3984aa6a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AllUsersCanReadAnonymousGroup < ActiveRecord::Migration
+class AllUsersCanReadAnonymousGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
index e6e54579a602664310b3fe331159d56055fb71af..b9ab9cd9db78edb4332382198f2ffb25e277cb1e 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameReplicationAttributes < ActiveRecord::Migration
+class RenameReplicationAttributes < ActiveRecord::Migration[4.2]
   RENAME = [[:redundancy, :replication_desired],
             [:redundancy_confirmed_as, :replication_confirmed],
             [:redundancy_confirmed_at, :replication_confirmed_at]]
index 6e581883c5709569ad0bd0411f6c61ca3bd43d77..72ef88c18589f73650c5d0db1950dc3b8371c483 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CollectionNameOwnerUniqueOnlyNonExpired < ActiveRecord::Migration
+class CollectionNameOwnerUniqueOnlyNonExpired < ActiveRecord::Migration[4.2]
   def find_index
     indexes = ActiveRecord::Base.connection.indexes('collections')
     name_owner_index = indexes.select do |index|
index 31fc683e20085966c122f46e046dd3bd70722f3c..8814fc87d330875c14f53ccf9d4e6cd5983c247f 100644 (file)
@@ -5,7 +5,7 @@
 require 'has_uuid'
 require 'kind_and_etag'
 
-class FixCollectionPortableDataHashWithHintedManifest < ActiveRecord::Migration
+class FixCollectionPortableDataHashWithHintedManifest < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   class ArvadosModel < ActiveRecord::Base
index 96988e290782325d5f3c032c6f1bcb1487ffda84..0aca20b27b818b8d29f17ff4c975c25581c1abb8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ChangeCollectionExpiresAtToDatetime < ActiveRecord::Migration
+class ChangeCollectionExpiresAtToDatetime < ActiveRecord::Migration[4.2]
   def up
     change_column :collections, :expires_at, :datetime
   end
index 79a076ddc822937e61c1e1171703dbb7556a23fd..cb27515a1708de372d732cf3604bd987ef9e38ad 100644 (file)
@@ -5,7 +5,7 @@
 require 'has_uuid'
 require 'kind_and_etag'
 
-class AddUsernameToUsers < ActiveRecord::Migration
+class AddUsernameToUsers < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   SEARCH_INDEX_COLUMNS =
index dc7c1756c55eb72c168035983fdc091c5a24bb04..51e901c00a91df52768a55d8daca087900fbddab 100644 (file)
@@ -5,7 +5,7 @@
 require 'has_uuid'
 require 'kind_and_etag'
 
-class BackwardCompatibilityForUserRepositories < ActiveRecord::Migration
+class BackwardCompatibilityForUserRepositories < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   class ArvadosModel < ActiveRecord::Base
index 4e1379e2aab7f6bfb5c7a7310ffd3db40608f643..1930f1332da09f33767f3cf9b636964e8599e6ec 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration
+class NoFilenamesInCollectionSearchIndex < ActiveRecord::Migration[4.2]
   def up
     remove_index :collections, :name => 'collections_search_index'
     add_index :collections, ["owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "portable_data_hash", "uuid", "name"], name: 'collections_search_index'
index a510c16ccde9bdf4577be7e9949a36b8407d27b1..69e9f7f1f7cb885f410c94b531095db23b8151dd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ReadOnlyOnKeepServices < ActiveRecord::Migration
+class ReadOnlyOnKeepServices < ActiveRecord::Migration[4.2]
   def change
     add_column :keep_services, :read_only, :boolean, null: false, default: false
   end
index 843837f7046b8f13e056eec2b112181cdc37f54e..373d7477b307f2a00434fa000b828a2105ad44e0 100644 (file)
@@ -4,7 +4,7 @@
 
 require "./db/migrate/20150123142953_full_text_search.rb"
 
-class LeadingSpaceOnFullTextIndex < ActiveRecord::Migration
+class LeadingSpaceOnFullTextIndex < ActiveRecord::Migration[4.2]
   def up
     # Inspect one of the full-text indexes (chosen arbitrarily) to
     # determine whether this migration is needed.
index 2bda546e9cb6d26200dc305ff753113c969702f4..ee6f5ec64056304cbfe533acc8d5d3e08018e2c2 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateContainersAndRequests < ActiveRecord::Migration
+class CreateContainersAndRequests < ActiveRecord::Migration[4.2]
   def change
     create_table :containers do |t|
       t.string :uuid
index a112bea62840bde9e1eacbeeb1072e36dcbf0e11..ba2602076cb83fd4fb792543a4b0fc9fa1dd619d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FixContainersIndex < ActiveRecord::Migration
+class FixContainersIndex < ActiveRecord::Migration[4.2]
   def up
     execute "CREATE INDEX container_requests_full_text_search_idx ON container_requests USING gin(#{ContainerRequest.full_text_tsvector});"
     add_index :container_requests, ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "name", "state", "requesting_container_uuid", "container_uuid", "container_image", "cwd", "output_path"], name: 'container_requests_search_index'
index e28ec2870ee7b6c869e10493e2c42555b84050d4..1049da8df6287179ff9675bb01284f8b1bd6708b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddExitCodeToContainers < ActiveRecord::Migration
+class AddExitCodeToContainers < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :exit_code, :integer
   end
index 30f8dd0e20dcd369842e381d31fb33c8952efd99..34ad4e763bc3c3cda8340a7ac31b800789d63d43 100644 (file)
@@ -4,7 +4,7 @@
 
 require 'has_uuid'
 
-class AddUuidToApiClientAuthorization < ActiveRecord::Migration
+class AddUuidToApiClientAuthorization < ActiveRecord::Migration[4.2]
   extend HasUuid::ClassMethods
 
   def up
index d5c7587383938df39293b5097c52ef15f0abe85e..c8a8b5c4457c5011d434f6bc6c2a22991c37802b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUuidToApiTokenSearchIndex < ActiveRecord::Migration
+class AddUuidToApiTokenSearchIndex < ActiveRecord::Migration[4.2]
   def up
     begin
       remove_index :api_client_authorizations, :name => 'api_client_authorizations_search_index'
index ea6ca6353eb4caa7d09c1aae63cd1acc278f126d..99b24428f50ef666afa81340c653d4fa324f7029 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddComponentsToJob < ActiveRecord::Migration
+class AddComponentsToJob < ActiveRecord::Migration[4.2]
   def up
     add_column :jobs, :components, :text
   end
index 163289bff228e1f9ff2dd97f7b163231effc3796..392e38a5d04c36f081740c4e687c2500fd922d9a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddAuthsToContainer < ActiveRecord::Migration
+class AddAuthsToContainer < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :auth_uuid, :string
     add_column :containers, :locked_by_uuid, :string
index 34759044f6a40c899d1909040b9b7f561bd66321..2fcfc29d81e1f1bdf4f91223a62f2d3c5532ae38 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddAuthAndLockToContainerIndex < ActiveRecord::Migration
+class AddAuthAndLockToContainerIndex < ActiveRecord::Migration[4.2]
   Columns_were = ["uuid", "owner_uuid", "modified_by_client_uuid", "modified_by_user_uuid", "state", "log", "cwd", "output_path", "output", "container_image"]
   Columns = Columns_were + ["auth_uuid", "locked_by_uuid"]
   def up
index b15a8e45e6ad697335ad0b4e953b7a90f1e58dbb..29960abf63c6f0560379fc2bee438b42b5b481ac 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateWorkflows < ActiveRecord::Migration
+class CreateWorkflows < ActiveRecord::Migration[4.2]
   def up
     create_table :workflows do |t|
       t.string :uuid
index 1a480767e577d71982d81f95d020eddded6ce87b..16f7a6b97b1206f58545b48f4ebbd52ba1075435 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddScriptParametersDigestToJobs < ActiveRecord::Migration
+class AddScriptParametersDigestToJobs < ActiveRecord::Migration[4.2]
   def change
     add_column :jobs, :script_parameters_digest, :string
     add_index :jobs, :script_parameters_digest
index 320e0834f7a43f9703efcf53ce518006f1cf6be5..38c8627137e7de644a3bd79494089a7c45916d1a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class PopulateScriptParametersDigest < ActiveRecord::Migration
+class PopulateScriptParametersDigest < ActiveRecord::Migration[4.2]
   def up
     done = false
     while !done
index 949bccb3f4bf50c566c3eedb09c4b181a06bb737..6afd9bfccac8a0f05be0673c0058f79b6f41e8ac 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RepairScriptParametersDigest < ActiveRecord::Migration
+class RepairScriptParametersDigest < ActiveRecord::Migration[4.2]
   def up
     Job.find_each do |j|
       have = j.script_parameters_digest
index 61d327b2960c201f5d74e6c6d8786c41ee3980d4..63e505db42414066f98865d5f7b711f3af021e7c 100644 (file)
@@ -2,11 +2,11 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RenameWorkflowToDefinition < ActiveRecord::Migration
+class RenameWorkflowToDefinition < ActiveRecord::Migration[4.2]
   def up
     rename_column :workflows, :workflow, :definition
-  end 
-    
+  end
+
   def down
     rename_column :workflows, :definition, :workflow
   end
index 063ce971518457b897731245cfa8719d7f31dfcf..4166cc45e3a6722cd15ab9e2bfc6ff5b92bd79dc 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddContainerCount < ActiveRecord::Migration
+class AddContainerCount < ActiveRecord::Migration[4.2]
   def up
     add_column :container_requests, :container_count, :int, :default => 0
   end
index 0ba04f6ae480354f56d36893be2cbbad609e98fc..62cb0edf638362d24afacb078576953571a659c6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddUseExistingToContainerRequests < ActiveRecord::Migration
+class AddUseExistingToContainerRequests < ActiveRecord::Migration[4.2]
   def up
     add_column :container_requests, :use_existing, :boolean, :default => true
   end
index 6820dfb4e80cfc3ba9380598a80389d89506d319..8c1e982d862849568a7a4d10ec0c81cc67a3a001 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddSchedulingParametersToContainer < ActiveRecord::Migration
+class AddSchedulingParametersToContainer < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :scheduling_parameters, :text
     add_column :container_requests, :scheduling_parameters, :text
index 168bd4fd056d22272424c1fd25238b26b9c03666..b5d76d0435b071d8fcb75712f2be85699dc9ef13 100644 (file)
@@ -4,7 +4,7 @@
 
 require 'has_uuid'
 
-class AddOutputAndLogUuidToContainerRequest < ActiveRecord::Migration
+class AddOutputAndLogUuidToContainerRequest < ActiveRecord::Migration[4.2]
   extend HasUuid::ClassMethods
 
   def up
index 9d1e75275ae23e4b57081768ff1c8773686a4157..c5286d6283c3b7bec96c38ab024e2189e8182630 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputAndLogUuidsToContainerRequestSearchIndex < ActiveRecord::Migration
+class AddOutputAndLogUuidsToContainerRequestSearchIndex < ActiveRecord::Migration[4.2]
   def up
     begin
       remove_index :container_requests, :name => 'container_requests_search_index'
index 0ec52124deca9eba478da8f4799d1f2e62c34e59..55ab7115757d6fb3042f9bdd8c85e1ea92bc3049 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FullTextSearchIndexes < ActiveRecord::Migration
+class FullTextSearchIndexes < ActiveRecord::Migration[4.2]
   def fts_indexes
     {
       "collections" => "collections_full_text_search_idx",
index c3bea69f89fe9651b9cd1383d703761f9943fdb7..02166f3b62b50577c7270ab84704123e3417d09c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SplitExpiryToTrashAndDelete < ActiveRecord::Migration
+class SplitExpiryToTrashAndDelete < ActiveRecord::Migration[4.2]
   def up
     Collection.transaction do
       add_column(:collections, :trash_at, :datetime)
index aac8ade5b4806f4c940773c15afe6e3ea9e14a02..426c2b96e409e390c06016a4e898d17f6e83ff0c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputNameToContainerRequests < ActiveRecord::Migration
+class AddOutputNameToContainerRequests < ActiveRecord::Migration[4.2]
   def up
     add_column :container_requests, :output_name, :string, :default => nil
   end
index 1b846fdbe3704740d0b591f092950adb66e4b920..bf54a2313bac6f3a56cbdecbcf3450ca5b03bfaf 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputNameToContainerRequestSearchIndex < ActiveRecord::Migration
+class AddOutputNameToContainerRequestSearchIndex < ActiveRecord::Migration[4.2]
   def up
     begin
       remove_index :container_requests, :name => 'container_requests_search_index'
index 220323d15eb96cd05c610fb8adb17534355a2df2..704be954e31dca46a7a86a815e295ed047800203 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputNameToCrFtsIndex < ActiveRecord::Migration
+class AddOutputNameToCrFtsIndex < ActiveRecord::Migration[4.2]
   def up
     t = "container_requests"
     i = "container_requests_full_text_search_idx"
index cc56e42aec87f4bf590d67a239aab72d3b9e5d84..928db15299af829e5fa59a6442b317c821142096 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SetFinishedAtOnFinishedPipelineInstances < ActiveRecord::Migration
+class SetFinishedAtOnFinishedPipelineInstances < ActiveRecord::Migration[4.2]
   def change
     ActiveRecord::Base.connection.execute("update pipeline_instances set finished_at=updated_at where finished_at is null and (state='Failed' or state='Complete')")
   end
index d4e13c9dd8d9e2d680be5b111ed6099dea9e30e9..2d641c1729d11d4416dc171dd5fa57082cecefce 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NoCrMountsAndWorkflowDefInFullTextSearchIndex < ActiveRecord::Migration
+class NoCrMountsAndWorkflowDefInFullTextSearchIndex < ActiveRecord::Migration[4.2]
   def fts_indexes
     {
       "container_requests" => "container_requests_full_text_search_idx",
index 5b8c6a71d47da487fe4449aa494460f4cde42854..295511d0893973caa0d42c96be92a66e82bd9d11 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NoDowngradeAfterJson < ActiveRecord::Migration
+class NoDowngradeAfterJson < ActiveRecord::Migration[4.2]
   def up
   end
 
index cc8783134fee6f1194f58804cd9af74fac763cf7..ce241bfb6cbbcfcb6fced9ccd36cda343461dabd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SerializedColumnsAcceptNull < ActiveRecord::Migration
+class SerializedColumnsAcceptNull < ActiveRecord::Migration[4.2]
   def change
     change_column :api_client_authorizations, :scopes, :text, null: true, default: '["all"]'
   end
index c9b0a8ea99bbdf52a44f29194efe43de6fe5ad88..c94f33133a41abe352054a59c58108f8cf9a08d6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPortableDataHashIndexToCollections < ActiveRecord::Migration
+class AddPortableDataHashIndexToCollections < ActiveRecord::Migration[4.2]
   def change
     add_index :collections, :portable_data_hash
   end
index 99b3629a39de1af6bcbba70ced53f006256225d6..259278dcff02121bb111238dcb2aa150f4ce1bb3 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddOutputTtlToContainerRequests < ActiveRecord::Migration
+class AddOutputTtlToContainerRequests < ActiveRecord::Migration[4.2]
   def change
     add_column :container_requests, :output_ttl, :integer, default: 0, null: false
   end
index e11c86f9e60c674b0f36ab353c9d72a0507ac6d3..1c43656b5eb28b4c62ad1841696630f90f68dfc8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddCreatedByJobTaskIndexToJobTasks < ActiveRecord::Migration
+class AddCreatedByJobTaskIndexToJobTasks < ActiveRecord::Migration[4.2]
   def change
     add_index :job_tasks, :created_by_job_task_uuid
   end
index 44ae7e5ef9cba044ec238d2b0df4abf9469ef27c..c02b469ef29d0bec60af45f7a8372fa9b45f6030 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddObjectOwnerIndexToLogs < ActiveRecord::Migration
+class AddObjectOwnerIndexToLogs < ActiveRecord::Migration[4.2]
   def change
     add_index :logs, :object_owner_uuid
   end
index 2dd1a0ca1cf4cde3d37b531b61407719c2ab57dd..45106399a9c312100992a1022f944841bfdcaf18 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddRequestingContainerIndexToContainerRequests < ActiveRecord::Migration
+class AddRequestingContainerIndexToContainerRequests < ActiveRecord::Migration[4.2]
   def change
     add_index :container_requests, :requesting_container_uuid
   end
index 2c90c9a04bb53894b922d25d3d2745f99e573db2..31238a1b1a59917bb3c1777da863bae80a661a1e 100644 (file)
@@ -4,7 +4,7 @@
 
 require 'migrate_yaml_to_json'
 
-class JobsYamlToJson < ActiveRecord::Migration
+class JobsYamlToJson < ActiveRecord::Migration[4.2]
   def up
     [
       'components',
index 707c3dd946f377d7ada7513cf12a1ced9d896487..15b72047754b38fb58a405a011e4c8b0a31c99f4 100644 (file)
@@ -4,7 +4,7 @@
 
 require 'migrate_yaml_to_json'
 
-class YamlToJson < ActiveRecord::Migration
+class YamlToJson < ActiveRecord::Migration[4.2]
   def up
     [
       ['collections', 'properties'],
index 921803a2970137c89cf8e19c8fdd329061f09c1c..1c78b53be345d17ae7909a677513132fa33d27ac 100644 (file)
@@ -4,7 +4,7 @@
 
 require './db/migrate/20161213172944_full_text_search_indexes'
 
-class JsonCollectionProperties < ActiveRecord::Migration
+class JsonCollectionProperties < ActiveRecord::Migration[4.2]
   def up
     # Drop the FT index before changing column type to avoid
     # "PG::DatatypeMismatch: ERROR: COALESCE types jsonb and text
index 17fc31ff2d06a652e374875c73a067df44e15f69..81a4722652552a686c90da4921bf9e2ee72098b6 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class TrashableGroups < ActiveRecord::Migration
+class TrashableGroups < ActiveRecord::Migration[4.2]
   def up
     add_column :groups, :trash_at, :datetime
     add_index(:groups, :trash_at)
index b864f75c12a56329155c52114c3e98fd710f6619..6f4a5b971e1cbfd57785c724c77dc014eb627486 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class MaterializedPermissionView < ActiveRecord::Migration
+class MaterializedPermissionView < ActiveRecord::Migration[4.2]
 
   @@idxtables = [:collections, :container_requests, :groups, :jobs, :links, :pipeline_instances, :pipeline_templates, :repositories, :users, :virtual_machines, :workflows, :logs]
 
index aa42423a4dbd7ab9dc2d39ad13ca93e14dba485f..a41e0693f689b9b7761744b3170fe9f6ed4ece2a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddIndexToContainers < ActiveRecord::Migration
+class AddIndexToContainers < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute("CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at desc, uuid asc)")
     ActiveRecord::Base.connection.execute("CREATE INDEX index_container_requests_on_container_uuid on container_requests (container_uuid)")
index c9e50a64b79e56a64b1d90cfaee7be2c2dbf8900..d071c32f08ff2031fe9824daf9a6114fe484564b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class FixTrashFlagFollow < ActiveRecord::Migration
+class FixTrashFlagFollow < ActiveRecord::Migration[4.2]
   def change
     ActiveRecord::Base.connection.execute("DROP MATERIALIZED VIEW materialized_permission_view")
     ActiveRecord::Base.connection.execute(
index 0183ef6dc51dc50d81df2999fa8bdd01539f8c14..a68168cac869ae1a64c33b1fbf34fadb11ea09fd 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddGinIndexToCollectionProperties < ActiveRecord::Migration
+class AddGinIndexToCollectionProperties < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute("CREATE INDEX collection_index_on_properties ON collections USING gin (properties);")
   end
index 112c2ba89118ead683daa6bddccbe747cb2179a7..c730e8c9b87192f746733a6e15f4194eff45f4df 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddStorageClassesToCollections < ActiveRecord::Migration
+class AddStorageClassesToCollections < ActiveRecord::Migration[4.2]
   def up
     add_column :collections, :storage_classes_desired, :jsonb, :default => ["default"]
     add_column :collections, :storage_classes_confirmed, :jsonb, :default => []
index a161f633d8f9a7d5d9a2422650931bbb07c10fec..7ea71caf8491bb72ebddab36cb66afffae8891e5 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddSecretMountsToContainers < ActiveRecord::Migration
+class AddSecretMountsToContainers < ActiveRecord::Migration[4.2]
   def change
     add_column :container_requests, :secret_mounts, :jsonb, default: {}
     add_column :containers, :secret_mounts, :jsonb, default: {}
index 529126b299a701617ede80a1ba75fed1b05de280..5359ead349500326b25e7700ebb8f85d469fdae0 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ChangeContainerPriorityBigint < ActiveRecord::Migration
+class ChangeContainerPriorityBigint < ActiveRecord::Migration[4.2]
   def change
     change_column :containers, :priority, :integer, limit: 8
   end
index 10b35a7aba03f5f5940e0309892567532819b1f2..1d2b92a7570a7b94abecd3edb103874403898015 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddRedirectToUserUuidToUsers < ActiveRecord::Migration
+class AddRedirectToUserUuidToUsers < ActiveRecord::Migration[4.2]
   def up
     add_column :users, :redirect_to_user_uuid, :string
     User.reset_column_information
index 79e777e0a61132808b56cb8eba1dc80e35e233fb..9911be4bf1807c971514949a741bee35aeacb15c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddContainerAuthUuidIndex < ActiveRecord::Migration
+class AddContainerAuthUuidIndex < ActiveRecord::Migration[4.2]
   def change
     add_index :containers, :auth_uuid
   end
index 988227a622e918efa3b813e9612095c04ccf8bc2..490f65adb4195da3e0f6b7e35a0597123e6a13a3 100644 (file)
@@ -4,7 +4,7 @@
 
 require './db/migrate/20161213172944_full_text_search_indexes'
 
-class PropertiesToJsonb < ActiveRecord::Migration
+class PropertiesToJsonb < ActiveRecord::Migration[4.2]
 
   @@tables_columns = [["nodes", "properties"],
                       ["nodes", "info"],
index 12c6696c609da2bddda5cebe26407b58a7772404..4824a686c92bcd010ed3be0044708cf5b37dff59 100644 (file)
@@ -4,7 +4,7 @@
 
 require './db/migrate/20161213172944_full_text_search_indexes'
 
-class AddPropertiesToGroups < ActiveRecord::Migration
+class AddPropertiesToGroups < ActiveRecord::Migration[4.2]
   def up
     add_column :groups, :properties, :jsonb, default: {}
     ActiveRecord::Base.connection.execute("CREATE INDEX group_index_on_properties ON groups USING gin (properties);")
index 36b155cc2580e823429b2783b0c6542234c7eb0a..6597798b27848eff3a66decd1018da4d4f7052cf 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class IndexAllFilenames < ActiveRecord::Migration
+class IndexAllFilenames < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute 'ALTER TABLE collections ALTER COLUMN file_names TYPE text'
   end
index 8d1cdf39b3b9f96fea08abc05f119de7baf6700e..28bbf5f4872c180fb454e9add4ec493d614f9a0b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPdhAndTrashIndexToCollections < ActiveRecord::Migration
+class AddPdhAndTrashIndexToCollections < ActiveRecord::Migration[4.2]
   def change
     add_index :collections, [:portable_data_hash, :trash_at]
   end
index 94ca10061bb113205b933e627e11717d83845ab2..6d22618890d7ec50e2040004f80cefbebbba684c 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddLockIndexToContainers < ActiveRecord::Migration
+class AddLockIndexToContainers < ActiveRecord::Migration[4.2]
   def change
     # For the current code in sdk/go/dispatch:
     add_index :containers, [:locked_by_uuid, :priority]
index 3d757e4114adead081c83feaad5f743db4578731..afa1b62e2a8bf1f596954acc9e48281b56d81353 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class DropPdhIndexFromCollections < ActiveRecord::Migration
+class DropPdhIndexFromCollections < ActiveRecord::Migration[4.2]
   def change
     remove_index :collections, column: :portable_data_hash
   end
index 82b21635176b85092aa27f9b8b5baa37a53b6a04..e6e0597b7a64e5b8c780309ac7f093cd4919bda0 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddMd5IndexToContainers < ActiveRecord::Migration
+class AddMd5IndexToContainers < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute 'CREATE INDEX index_containers_on_reuse_columns on containers (md5(command), cwd, md5(environment), output_path, container_image, md5(mounts), secret_mounts_md5, md5(runtime_constraints))'
   end
index 7245108717ae6a9fbd94054608b18851d61dff06..3c807925073b08bfe95e33b579d89d5e05918850 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddQueueIndexToContainers < ActiveRecord::Migration
+class AddQueueIndexToContainers < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute 'CREATE INDEX index_containers_on_queued_state on containers (state, (priority > 0))'
   end
index 4c963e6fde6f38b9b5d832d955dc4f88491f97f0..66cdc4290710a98469684eaddd6d37f517e661aa 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddRuntimeStatusToContainers < ActiveRecord::Migration
+class AddRuntimeStatusToContainers < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :runtime_status, :jsonb, default: {}
     add_index :containers, :runtime_status, using: :gin
index a624dd9aff3d25c9479b250a90286660882f70bc..b5a8b7171830742c89b706cceaed858ff36e37a9 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddVersionInfoToCollections < ActiveRecord::Migration
+class AddVersionInfoToCollections < ActiveRecord::Migration[4.2]
   def change
     # Do changes in bulk to save time on huge tables
     change_table :collections, :bulk => true do |t|
index 12a08e07d29abf91be5fb8d15a297ac1d5b49559..4190f9ba8a4a5851e3249dd8ed8ebaf9b1683104 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class SetCurrentVersionUuidOnCollections < ActiveRecord::Migration
+class SetCurrentVersionUuidOnCollections < ActiveRecord::Migration[4.2]
   def up
     # Set the current version uuid as itself
     Collection.where(current_version_uuid: nil).update_all("current_version_uuid=uuid")
index b0eea9e7ae827c55e965daa19336a80b3d49d4bc..bdb51b891c7d567b24b2917861a2aca4ee1306cb 100644 (file)
@@ -4,7 +4,7 @@
 
 require './db/migrate/20161213172944_full_text_search_indexes'
 
-class ReplaceFullTextIndexes < ActiveRecord::Migration
+class ReplaceFullTextIndexes < ActiveRecord::Migration[4.2]
   def up
     FullTextSearchIndexes.new.up
   end
index e6860964bbf6836a8ecdda3d3f91a4b6383ac691..b321422143b9e7df21ed6c7cfb55a3193ba6ca80 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RecomputeFileNamesIndex < ActiveRecord::Migration
+class RecomputeFileNamesIndex < ActiveRecord::Migration[4.2]
   def do_batch(pdhs:)
     ActiveRecord::Base.connection.exec_query('BEGIN')
     Collection.select(:portable_data_hash, :manifest_text).where(portable_data_hash: pdhs).distinct(:portable_data_hash).each do |c|
index 640395618f894a5e5fed3d9c7b19279d758b6413..7b4558dbaaf27024d5317d0083b627a82bb61c38 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RecreateCollectionUniqueNameIndex < ActiveRecord::Migration
+class RecreateCollectionUniqueNameIndex < ActiveRecord::Migration[4.2]
   def up
     Collection.transaction do
       remove_index(:collections,
index fbdc397fcff8cae4c2fb22fd72a35401f13c497a..4a18f09ea484143971900811fecfd41784ac5f67 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddPreserveVersionToCollections < ActiveRecord::Migration
+class AddPreserveVersionToCollections < ActiveRecord::Migration[4.2]
   def change
     add_column :collections, :preserve_version, :boolean, default: false
   end
index 63e99191a966de18f58120626ef42fb24e03f278..25ddfec0783726c0c9ef6203c30eff78c57ea364 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddCurrentVersionUuidToCollectionSearchIndex < ActiveRecord::Migration
+class AddCurrentVersionUuidToCollectionSearchIndex < ActiveRecord::Migration[4.2]
   disable_ddl_transaction!
 
   def up
index 0f2eaee257ea1f2af5d3e4eca1378ce8a27ac82a..630b9f24ee852574e314eb1c6397b2fec2a09764 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddContainerRuntimeToken < ActiveRecord::Migration
+class AddContainerRuntimeToken < ActiveRecord::Migration[4.2]
   def change
     add_column :container_requests, :runtime_token, :text, :null => true
     add_column :containers, :runtime_user_uuid, :text, :null => true
index c4d0603ab7ba8c7ee97ce4a955207fd1d880c9a7..d48df6173c5ab648a6d11f311e6ece4684567a91 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddRuntimeTokenToContainer < ActiveRecord::Migration
+class AddRuntimeTokenToContainer < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :runtime_token, :text, :null => true
   end
index e8776a651c8b89393b9c017a56384e36c23a0d29..94aab8bdf5a088a6b78c47a00b68d647fd7aa0a4 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddExpressionIndexToLinks < ActiveRecord::Migration
+class AddExpressionIndexToLinks < ActiveRecord::Migration[4.2]
   def up
     ActiveRecord::Base.connection.execute 'CREATE INDEX index_links_on_substring_head_uuid on links (substring(head_uuid, 7, 5))'
     ActiveRecord::Base.connection.execute 'CREATE INDEX index_links_on_substring_tail_uuid on links (substring(tail_uuid, 7, 5))'
index 1208d30c8bdfd811dc59e00ed284cd3491a00998..34f70dabafb21314108c720a8c429ebf96627a0b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddContainerLockCount < ActiveRecord::Migration
+class AddContainerLockCount < ActiveRecord::Migration[4.2]
   def change
     add_column :containers, :lock_count, :int, :null => false, :default => 0
   end