[ARVADOS] updated: 1.3.0-560-g8ba20b331

Git user git at public.curoverse.com
Wed Mar 27 02:44:13 UTC 2019


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

       via  8ba20b331fc99252acc29161902017ab98c6a979 (commit)
      from  995b43b51c6c651efe266446f6120e67d31f06ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8ba20b331fc99252acc29161902017ab98c6a979
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Tue Mar 26 23:41:10 2019 -0300

    14873: Marks past migrations with version 4.2
    
    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 at veritasgenetics.com>

diff --git a/services/api/db/migrate/20121016005009_create_collections.rb b/services/api/db/migrate/20121016005009_create_collections.rb
index 79d7abefa..f7d53cf45 100644
--- a/services/api/db/migrate/20121016005009_create_collections.rb
+++ b/services/api/db/migrate/20121016005009_create_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20130105203021_create_metadata.rb b/services/api/db/migrate/20130105203021_create_metadata.rb
index 63ddf72b4..c1f90a97f 100644
--- a/services/api/db/migrate/20130105203021_create_metadata.rb
+++ b/services/api/db/migrate/20130105203021_create_metadata.rb
@@ -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
diff --git a/services/api/db/migrate/20130105224358_rename_metadata_class.rb b/services/api/db/migrate/20130105224358_rename_metadata_class.rb
index dff192ae7..cea5d29a2 100644
--- a/services/api/db/migrate/20130105224358_rename_metadata_class.rb
+++ b/services/api/db/migrate/20130105224358_rename_metadata_class.rb
@@ -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
diff --git a/services/api/db/migrate/20130105224618_rename_collection_created_by_client.rb b/services/api/db/migrate/20130105224618_rename_collection_created_by_client.rb
index 7fba042b6..7e5450f49 100644
--- a/services/api/db/migrate/20130105224618_rename_collection_created_by_client.rb
+++ b/services/api/db/migrate/20130105224618_rename_collection_created_by_client.rb
@@ -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
diff --git a/services/api/db/migrate/20130107181109_add_uuid_to_collections.rb b/services/api/db/migrate/20130107181109_add_uuid_to_collections.rb
index 614599bbf..ee2263946 100644
--- a/services/api/db/migrate/20130107181109_add_uuid_to_collections.rb
+++ b/services/api/db/migrate/20130107181109_add_uuid_to_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20130107212832_create_nodes.rb b/services/api/db/migrate/20130107212832_create_nodes.rb
index dd2ddb30e..0bf89ae83 100644
--- a/services/api/db/migrate/20130107212832_create_nodes.rb
+++ b/services/api/db/migrate/20130107212832_create_nodes.rb
@@ -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
diff --git a/services/api/db/migrate/20130109175700_create_pipelines.rb b/services/api/db/migrate/20130109175700_create_pipelines.rb
index 5a2d97e59..972712c76 100644
--- a/services/api/db/migrate/20130109175700_create_pipelines.rb
+++ b/services/api/db/migrate/20130109175700_create_pipelines.rb
@@ -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
diff --git a/services/api/db/migrate/20130109220548_create_pipeline_invocations.rb b/services/api/db/migrate/20130109220548_create_pipeline_invocations.rb
index bf65b5023..b81884a35 100644
--- a/services/api/db/migrate/20130109220548_create_pipeline_invocations.rb
+++ b/services/api/db/migrate/20130109220548_create_pipeline_invocations.rb
@@ -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
diff --git a/services/api/db/migrate/20130113214204_add_index_to_collections_and_metadata.rb b/services/api/db/migrate/20130113214204_add_index_to_collections_and_metadata.rb
index 99eee7b17..23fd6c37f 100644
--- a/services/api/db/migrate/20130113214204_add_index_to_collections_and_metadata.rb
+++ b/services/api/db/migrate/20130113214204_add_index_to_collections_and_metadata.rb
@@ -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
diff --git a/services/api/db/migrate/20130116024233_create_specimens.rb b/services/api/db/migrate/20130116024233_create_specimens.rb
index 75a8ded6f..b644b99cf 100644
--- a/services/api/db/migrate/20130116024233_create_specimens.rb
+++ b/services/api/db/migrate/20130116024233_create_specimens.rb
@@ -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
diff --git a/services/api/db/migrate/20130116215213_create_projects.rb b/services/api/db/migrate/20130116215213_create_projects.rb
index 032405aa1..bf362274f 100644
--- a/services/api/db/migrate/20130116215213_create_projects.rb
+++ b/services/api/db/migrate/20130116215213_create_projects.rb
@@ -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
diff --git a/services/api/db/migrate/20130118002239_rename_metadata_attributes.rb b/services/api/db/migrate/20130118002239_rename_metadata_attributes.rb
index dc4305db6..049b5e2d6 100644
--- a/services/api/db/migrate/20130118002239_rename_metadata_attributes.rb
+++ b/services/api/db/migrate/20130118002239_rename_metadata_attributes.rb
@@ -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
diff --git a/services/api/db/migrate/20130122020042_create_users.rb b/services/api/db/migrate/20130122020042_create_users.rb
index 8a95768ff..af3457aaa 100644
--- a/services/api/db/migrate/20130122020042_create_users.rb
+++ b/services/api/db/migrate/20130122020042_create_users.rb
@@ -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
diff --git a/services/api/db/migrate/20130122201442_create_logs.rb b/services/api/db/migrate/20130122201442_create_logs.rb
index 195becb9b..9ebc676e3 100644
--- a/services/api/db/migrate/20130122201442_create_logs.rb
+++ b/services/api/db/migrate/20130122201442_create_logs.rb
@@ -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
diff --git a/services/api/db/migrate/20130122221616_add_modified_at_to_logs.rb b/services/api/db/migrate/20130122221616_add_modified_at_to_logs.rb
index 4e98c7ecb..5b0b76cff 100644
--- a/services/api/db/migrate/20130122221616_add_modified_at_to_logs.rb
+++ b/services/api/db/migrate/20130122221616_add_modified_at_to_logs.rb
@@ -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
diff --git a/services/api/db/migrate/20130123174514_add_uuid_index_to_users.rb b/services/api/db/migrate/20130123174514_add_uuid_index_to_users.rb
index 46d87c553..96b1769d1 100644
--- a/services/api/db/migrate/20130123174514_add_uuid_index_to_users.rb
+++ b/services/api/db/migrate/20130123174514_add_uuid_index_to_users.rb
@@ -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
diff --git a/services/api/db/migrate/20130123180224_create_api_clients.rb b/services/api/db/migrate/20130123180224_create_api_clients.rb
index 326e09d01..c0f3efc81 100644
--- a/services/api/db/migrate/20130123180224_create_api_clients.rb
+++ b/services/api/db/migrate/20130123180224_create_api_clients.rb
@@ -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
diff --git a/services/api/db/migrate/20130123180228_create_api_client_authorizations.rb b/services/api/db/migrate/20130123180228_create_api_client_authorizations.rb
index 7a1810971..2385c70ff 100644
--- a/services/api/db/migrate/20130123180228_create_api_client_authorizations.rb
+++ b/services/api/db/migrate/20130123180228_create_api_client_authorizations.rb
@@ -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
diff --git a/services/api/db/migrate/20130125220425_rename_created_by_to_owner.rb b/services/api/db/migrate/20130125220425_rename_created_by_to_owner.rb
index 9a31222e2..7be89a178 100644
--- a/services/api/db/migrate/20130125220425_rename_created_by_to_owner.rb
+++ b/services/api/db/migrate/20130125220425_rename_created_by_to_owner.rb
@@ -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
diff --git a/services/api/db/migrate/20130128202518_rename_metadata_to_links.rb b/services/api/db/migrate/20130128202518_rename_metadata_to_links.rb
index f3e6b450d..b46a459e5 100644
--- a/services/api/db/migrate/20130128202518_rename_metadata_to_links.rb
+++ b/services/api/db/migrate/20130128202518_rename_metadata_to_links.rb
@@ -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
diff --git a/services/api/db/migrate/20130128231343_add_properties_to_specimen.rb b/services/api/db/migrate/20130128231343_add_properties_to_specimen.rb
index 78ba71e41..36ef2f4b0 100644
--- a/services/api/db/migrate/20130128231343_add_properties_to_specimen.rb
+++ b/services/api/db/migrate/20130128231343_add_properties_to_specimen.rb
@@ -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
diff --git a/services/api/db/migrate/20130130205749_add_manifest_text_to_collection.rb b/services/api/db/migrate/20130130205749_add_manifest_text_to_collection.rb
index ca2441ae8..cb00d2fe7 100644
--- a/services/api/db/migrate/20130130205749_add_manifest_text_to_collection.rb
+++ b/services/api/db/migrate/20130130205749_add_manifest_text_to_collection.rb
@@ -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
diff --git a/services/api/db/migrate/20130203104818_create_jobs.rb b/services/api/db/migrate/20130203104818_create_jobs.rb
index ab069563e..cb0c51993 100644
--- a/services/api/db/migrate/20130203104818_create_jobs.rb
+++ b/services/api/db/migrate/20130203104818_create_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130203104824_create_job_steps.rb b/services/api/db/migrate/20130203104824_create_job_steps.rb
index 37c821cc9..19cc08ba8 100644
--- a/services/api/db/migrate/20130203104824_create_job_steps.rb
+++ b/services/api/db/migrate/20130203104824_create_job_steps.rb
@@ -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
diff --git a/services/api/db/migrate/20130203115329_add_priority_to_jobs.rb b/services/api/db/migrate/20130203115329_add_priority_to_jobs.rb
index a92e92b4a..63a2e2e4b 100644
--- a/services/api/db/migrate/20130203115329_add_priority_to_jobs.rb
+++ b/services/api/db/migrate/20130203115329_add_priority_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130207195855_add_index_on_timestamps.rb b/services/api/db/migrate/20130207195855_add_index_on_timestamps.rb
index 0a0154d46..a009db145 100644
--- a/services/api/db/migrate/20130207195855_add_index_on_timestamps.rb
+++ b/services/api/db/migrate/20130207195855_add_index_on_timestamps.rb
@@ -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
diff --git a/services/api/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb b/services/api/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb
index 453e13474..fef4a5a5b 100644
--- a/services/api/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb
+++ b/services/api/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb
@@ -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
diff --git a/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb b/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb
index 4cecd0ec0..8c8779d40 100644
--- a/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb
+++ b/services/api/db/migrate/20130226170000_remove_native_target_from_links.rb
@@ -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
diff --git a/services/api/db/migrate/20130313175417_rename_projects_to_groups.rb b/services/api/db/migrate/20130313175417_rename_projects_to_groups.rb
index 602c8b4fc..0e9162185 100644
--- a/services/api/db/migrate/20130313175417_rename_projects_to_groups.rb
+++ b/services/api/db/migrate/20130313175417_rename_projects_to_groups.rb
@@ -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
diff --git a/services/api/db/migrate/20130315155820_add_is_locked_by_to_jobs.rb b/services/api/db/migrate/20130315155820_add_is_locked_by_to_jobs.rb
index 8ea3657af..a1047960a 100644
--- a/services/api/db/migrate/20130315155820_add_is_locked_by_to_jobs.rb
+++ b/services/api/db/migrate/20130315155820_add_is_locked_by_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130315183626_add_log_to_jobs.rb b/services/api/db/migrate/20130315183626_add_log_to_jobs.rb
index aa30165fd..3003387d6 100644
--- a/services/api/db/migrate/20130315183626_add_log_to_jobs.rb
+++ b/services/api/db/migrate/20130315183626_add_log_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130315213205_add_tasks_summary_to_jobs.rb b/services/api/db/migrate/20130315213205_add_tasks_summary_to_jobs.rb
index 9a64feac2..92f240a33 100644
--- a/services/api/db/migrate/20130315213205_add_tasks_summary_to_jobs.rb
+++ b/services/api/db/migrate/20130315213205_add_tasks_summary_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130318002138_add_resource_limits_to_jobs.rb b/services/api/db/migrate/20130318002138_add_resource_limits_to_jobs.rb
index aae3ff2ac..b3d6e587c 100644
--- a/services/api/db/migrate/20130318002138_add_resource_limits_to_jobs.rb
+++ b/services/api/db/migrate/20130318002138_add_resource_limits_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20130319165853_rename_job_command_to_script.rb b/services/api/db/migrate/20130319165853_rename_job_command_to_script.rb
index 8606698b6..0e8ab5ab0 100644
--- a/services/api/db/migrate/20130319165853_rename_job_command_to_script.rb
+++ b/services/api/db/migrate/20130319165853_rename_job_command_to_script.rb
@@ -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
diff --git a/services/api/db/migrate/20130319180730_rename_pipeline_invocation_to_pipeline_instance.rb b/services/api/db/migrate/20130319180730_rename_pipeline_invocation_to_pipeline_instance.rb
index 61cc2778e..8ad26870b 100644
--- a/services/api/db/migrate/20130319180730_rename_pipeline_invocation_to_pipeline_instance.rb
+++ b/services/api/db/migrate/20130319180730_rename_pipeline_invocation_to_pipeline_instance.rb
@@ -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
diff --git a/services/api/db/migrate/20130319194637_rename_pipelines_to_pipeline_templates.rb b/services/api/db/migrate/20130319194637_rename_pipelines_to_pipeline_templates.rb
index 012a86a2b..eea3444ba 100644
--- a/services/api/db/migrate/20130319194637_rename_pipelines_to_pipeline_templates.rb
+++ b/services/api/db/migrate/20130319194637_rename_pipelines_to_pipeline_templates.rb
@@ -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
diff --git a/services/api/db/migrate/20130319201431_rename_job_steps_to_job_tasks.rb b/services/api/db/migrate/20130319201431_rename_job_steps_to_job_tasks.rb
index 05d9ffb2c..96f3ff28a 100644
--- a/services/api/db/migrate/20130319201431_rename_job_steps_to_job_tasks.rb
+++ b/services/api/db/migrate/20130319201431_rename_job_steps_to_job_tasks.rb
@@ -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
diff --git a/services/api/db/migrate/20130319235957_add_default_owner_to_users.rb b/services/api/db/migrate/20130319235957_add_default_owner_to_users.rb
index 935ce46d6..feb5b3efe 100644
--- a/services/api/db/migrate/20130319235957_add_default_owner_to_users.rb
+++ b/services/api/db/migrate/20130319235957_add_default_owner_to_users.rb
@@ -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
diff --git a/services/api/db/migrate/20130320000107_add_default_owner_to_api_client_authorizations.rb b/services/api/db/migrate/20130320000107_add_default_owner_to_api_client_authorizations.rb
index 0f2b18f9c..0ccd30180 100644
--- a/services/api/db/migrate/20130320000107_add_default_owner_to_api_client_authorizations.rb
+++ b/services/api/db/migrate/20130320000107_add_default_owner_to_api_client_authorizations.rb
@@ -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
diff --git a/services/api/db/migrate/20130326173804_create_commits.rb b/services/api/db/migrate/20130326173804_create_commits.rb
index 972a61f52..6e42828dc 100644
--- a/services/api/db/migrate/20130326173804_create_commits.rb
+++ b/services/api/db/migrate/20130326173804_create_commits.rb
@@ -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
diff --git a/services/api/db/migrate/20130326182917_create_commit_ancestors.rb b/services/api/db/migrate/20130326182917_create_commit_ancestors.rb
index d63b2a6eb..59fc3c253 100644
--- a/services/api/db/migrate/20130326182917_create_commit_ancestors.rb
+++ b/services/api/db/migrate/20130326182917_create_commit_ancestors.rb
@@ -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
diff --git a/services/api/db/migrate/20130415020241_rename_orvos_to_arvados.rb b/services/api/db/migrate/20130415020241_rename_orvos_to_arvados.rb
index ed66bc754..46c9e848c 100644
--- a/services/api/db/migrate/20130415020241_rename_orvos_to_arvados.rb
+++ b/services/api/db/migrate/20130415020241_rename_orvos_to_arvados.rb
@@ -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')")
diff --git a/services/api/db/migrate/20130425024459_create_keep_disks.rb b/services/api/db/migrate/20130425024459_create_keep_disks.rb
index 79c33db20..1e21464c6 100644
--- a/services/api/db/migrate/20130425024459_create_keep_disks.rb
+++ b/services/api/db/migrate/20130425024459_create_keep_disks.rb
@@ -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
diff --git a/services/api/db/migrate/20130425214427_add_service_host_and_service_port_and_service_ssl_flag_to_keep_disks.rb b/services/api/db/migrate/20130425214427_add_service_host_and_service_port_and_service_ssl_flag_to_keep_disks.rb
index 5a815126f..9f08a3ce1 100644
--- a/services/api/db/migrate/20130425214427_add_service_host_and_service_port_and_service_ssl_flag_to_keep_disks.rb
+++ b/services/api/db/migrate/20130425214427_add_service_host_and_service_port_and_service_ssl_flag_to_keep_disks.rb
@@ -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
diff --git a/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb b/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb
index 2f10e1cca..23461b438 100644
--- a/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb
+++ b/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb
@@ -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
diff --git a/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb b/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb
index 84a2df293..8caa39c33 100644
--- a/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb
+++ b/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb
@@ -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
diff --git a/services/api/db/migrate/20130524042319_fix_job_task_qsequence_type.rb b/services/api/db/migrate/20130524042319_fix_job_task_qsequence_type.rb
index 91652f5af..e7bcd656a 100644
--- a/services/api/db/migrate/20130524042319_fix_job_task_qsequence_type.rb
+++ b/services/api/db/migrate/20130524042319_fix_job_task_qsequence_type.rb
@@ -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
diff --git a/services/api/db/migrate/20130528134100_update_nodes_index.rb b/services/api/db/migrate/20130528134100_update_nodes_index.rb
index 94ea67d97..5873eaa00 100644
--- a/services/api/db/migrate/20130528134100_update_nodes_index.rb
+++ b/services/api/db/migrate/20130528134100_update_nodes_index.rb
@@ -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
diff --git a/services/api/db/migrate/20130606183519_create_authorized_keys.rb b/services/api/db/migrate/20130606183519_create_authorized_keys.rb
index daeabb372..d9e4e542b 100644
--- a/services/api/db/migrate/20130606183519_create_authorized_keys.rb
+++ b/services/api/db/migrate/20130606183519_create_authorized_keys.rb
@@ -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
diff --git a/services/api/db/migrate/20130608053730_create_virtual_machines.rb b/services/api/db/migrate/20130608053730_create_virtual_machines.rb
index 97ecb73e9..8a9a74002 100644
--- a/services/api/db/migrate/20130608053730_create_virtual_machines.rb
+++ b/services/api/db/migrate/20130608053730_create_virtual_machines.rb
@@ -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
diff --git a/services/api/db/migrate/20130610202538_create_repositories.rb b/services/api/db/migrate/20130610202538_create_repositories.rb
index 6e8c94726..3f6df0527 100644
--- a/services/api/db/migrate/20130610202538_create_repositories.rb
+++ b/services/api/db/migrate/20130610202538_create_repositories.rb
@@ -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
diff --git a/services/api/db/migrate/20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb b/services/api/db/migrate/20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb
index 1e5f6cca7..a101480d0 100644
--- a/services/api/db/migrate/20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb
+++ b/services/api/db/migrate/20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb
@@ -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
diff --git a/services/api/db/migrate/20130612042554_add_name_unique_index_to_repositories.rb b/services/api/db/migrate/20130612042554_add_name_unique_index_to_repositories.rb
index bb5767d79..fb6243972 100644
--- a/services/api/db/migrate/20130612042554_add_name_unique_index_to_repositories.rb
+++ b/services/api/db/migrate/20130612042554_add_name_unique_index_to_repositories.rb
@@ -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
diff --git a/services/api/db/migrate/20130617150007_add_is_trusted_to_api_clients.rb b/services/api/db/migrate/20130617150007_add_is_trusted_to_api_clients.rb
index e74acbca8..15ea03848 100644
--- a/services/api/db/migrate/20130617150007_add_is_trusted_to_api_clients.rb
+++ b/services/api/db/migrate/20130617150007_add_is_trusted_to_api_clients.rb
@@ -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
diff --git a/services/api/db/migrate/20130626002829_add_is_active_to_users.rb b/services/api/db/migrate/20130626002829_add_is_active_to_users.rb
index 754ae6a44..91a69b3b6 100644
--- a/services/api/db/migrate/20130626002829_add_is_active_to_users.rb
+++ b/services/api/db/migrate/20130626002829_add_is_active_to_users.rb
@@ -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
diff --git a/services/api/db/migrate/20130626022810_activate_all_admins.rb b/services/api/db/migrate/20130626022810_activate_all_admins.rb
index 9986a3052..eb8837312 100644
--- a/services/api/db/migrate/20130626022810_activate_all_admins.rb
+++ b/services/api/db/migrate/20130626022810_activate_all_admins.rb
@@ -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
diff --git a/services/api/db/migrate/20130627154537_create_traits.rb b/services/api/db/migrate/20130627154537_create_traits.rb
index 6dc677d26..d1491377d 100644
--- a/services/api/db/migrate/20130627154537_create_traits.rb
+++ b/services/api/db/migrate/20130627154537_create_traits.rb
@@ -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
diff --git a/services/api/db/migrate/20130627184333_create_humans.rb b/services/api/db/migrate/20130627184333_create_humans.rb
index 4d8e1d2c5..c316e92d8 100644
--- a/services/api/db/migrate/20130627184333_create_humans.rb
+++ b/services/api/db/migrate/20130627184333_create_humans.rb
@@ -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
diff --git a/services/api/db/migrate/20130708163414_rename_foreign_uuid_attributes.rb b/services/api/db/migrate/20130708163414_rename_foreign_uuid_attributes.rb
index fa179da80..957aa58e8 100644
--- a/services/api/db/migrate/20130708163414_rename_foreign_uuid_attributes.rb
+++ b/services/api/db/migrate/20130708163414_rename_foreign_uuid_attributes.rb
@@ -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,
diff --git a/services/api/db/migrate/20130708182912_rename_job_foreign_uuid_attributes.rb b/services/api/db/migrate/20130708182912_rename_job_foreign_uuid_attributes.rb
index e56f3133a..655fff77a 100644
--- a/services/api/db/migrate/20130708182912_rename_job_foreign_uuid_attributes.rb
+++ b/services/api/db/migrate/20130708182912_rename_job_foreign_uuid_attributes.rb
@@ -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
diff --git a/services/api/db/migrate/20130708185153_rename_user_default_owner.rb b/services/api/db/migrate/20130708185153_rename_user_default_owner.rb
index 10dadc43c..c40ef46a6 100644
--- a/services/api/db/migrate/20130708185153_rename_user_default_owner.rb
+++ b/services/api/db/migrate/20130708185153_rename_user_default_owner.rb
@@ -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
diff --git a/services/api/db/migrate/20130724153034_add_scopes_to_api_client_authorizations.rb b/services/api/db/migrate/20130724153034_add_scopes_to_api_client_authorizations.rb
index 43a32716d..cef3a35da 100644
--- a/services/api/db/migrate/20130724153034_add_scopes_to_api_client_authorizations.rb
+++ b/services/api/db/migrate/20130724153034_add_scopes_to_api_client_authorizations.rb
@@ -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
diff --git a/services/api/db/migrate/20131007180607_rename_resource_limits_to_runtime_constraints.rb b/services/api/db/migrate/20131007180607_rename_resource_limits_to_runtime_constraints.rb
index 2fe28c3d1..d77f29a1d 100644
--- a/services/api/db/migrate/20131007180607_rename_resource_limits_to_runtime_constraints.rb
+++ b/services/api/db/migrate/20131007180607_rename_resource_limits_to_runtime_constraints.rb
@@ -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
diff --git a/services/api/db/migrate/20140117231056_normalize_collection_uuid.rb b/services/api/db/migrate/20140117231056_normalize_collection_uuid.rb
index c28c26859..b9e933e2b 100644
--- a/services/api/db/migrate/20140117231056_normalize_collection_uuid.rb
+++ b/services/api/db/migrate/20140117231056_normalize_collection_uuid.rb
@@ -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)
diff --git a/services/api/db/migrate/20140124222114_fix_link_kind_underscores.rb b/services/api/db/migrate/20140124222114_fix_link_kind_underscores.rb
index 90dbd6ef6..fb7bff666 100644
--- a/services/api/db/migrate/20140124222114_fix_link_kind_underscores.rb
+++ b/services/api/db/migrate/20140124222114_fix_link_kind_underscores.rb
@@ -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
diff --git a/services/api/db/migrate/20140129184311_normalize_collection_uuids_in_script_parameters.rb b/services/api/db/migrate/20140129184311_normalize_collection_uuids_in_script_parameters.rb
index a54c4cc20..9f5ade29f 100644
--- a/services/api/db/migrate/20140129184311_normalize_collection_uuids_in_script_parameters.rb
+++ b/services/api/db/migrate/20140129184311_normalize_collection_uuids_in_script_parameters.rb
@@ -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
diff --git a/services/api/db/migrate/20140317135600_add_nondeterministic_column_to_job.rb b/services/api/db/migrate/20140317135600_add_nondeterministic_column_to_job.rb
index ccf6210bf..e2febf85a 100644
--- a/services/api/db/migrate/20140317135600_add_nondeterministic_column_to_job.rb
+++ b/services/api/db/migrate/20140317135600_add_nondeterministic_column_to_job.rb
@@ -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
diff --git a/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb b/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
index fc09892ec..38a4a264a 100644
--- a/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
+++ b/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
@@ -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
diff --git a/services/api/db/migrate/20140321191343_add_repository_column_to_job.rb b/services/api/db/migrate/20140321191343_add_repository_column_to_job.rb
index 5e2b63692..243df8d15 100644
--- a/services/api/db/migrate/20140321191343_add_repository_column_to_job.rb
+++ b/services/api/db/migrate/20140321191343_add_repository_column_to_job.rb
@@ -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
diff --git a/services/api/db/migrate/20140324024606_add_output_is_persistent_to_job.rb b/services/api/db/migrate/20140324024606_add_output_is_persistent_to_job.rb
index a66d92ece..04a94d8e8 100644
--- a/services/api/db/migrate/20140324024606_add_output_is_persistent_to_job.rb
+++ b/services/api/db/migrate/20140324024606_add_output_is_persistent_to_job.rb
@@ -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
diff --git a/services/api/db/migrate/20140325175653_remove_kind_columns.rb b/services/api/db/migrate/20140325175653_remove_kind_columns.rb
index b4085ba92..3303fd9db 100644
--- a/services/api/db/migrate/20140325175653_remove_kind_columns.rb
+++ b/services/api/db/migrate/20140325175653_remove_kind_columns.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveKindColumns < ActiveRecord::Migration
+class RemoveKindColumns < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140402001908_add_system_group.rb b/services/api/db/migrate/20140402001908_add_system_group.rb
index 33bdd418e..f356c0551 100644
--- a/services/api/db/migrate/20140402001908_add_system_group.rb
+++ b/services/api/db/migrate/20140402001908_add_system_group.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddSystemGroup < ActiveRecord::Migration
+class AddSystemGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140407184311_rename_log_info_to_properties.rb b/services/api/db/migrate/20140407184311_rename_log_info_to_properties.rb
index 3d93ce538..35fabeacb 100644
--- a/services/api/db/migrate/20140407184311_rename_log_info_to_properties.rb
+++ b/services/api/db/migrate/20140407184311_rename_log_info_to_properties.rb
@@ -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
diff --git a/services/api/db/migrate/20140421140924_add_group_class_to_groups.rb b/services/api/db/migrate/20140421140924_add_group_class_to_groups.rb
index ef6213926..de126a292 100644
--- a/services/api/db/migrate/20140421140924_add_group_class_to_groups.rb
+++ b/services/api/db/migrate/20140421140924_add_group_class_to_groups.rb
@@ -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
diff --git a/services/api/db/migrate/20140421151939_rename_auth_keys_user_index.rb b/services/api/db/migrate/20140421151939_rename_auth_keys_user_index.rb
index fd1407453..4cabfacd2 100644
--- a/services/api/db/migrate/20140421151939_rename_auth_keys_user_index.rb
+++ b/services/api/db/migrate/20140421151939_rename_auth_keys_user_index.rb
@@ -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
diff --git a/services/api/db/migrate/20140421151940_timestamps_not_null.rb b/services/api/db/migrate/20140421151940_timestamps_not_null.rb
index 4426befef..6fbd10f1a 100644
--- a/services/api/db/migrate/20140421151940_timestamps_not_null.rb
+++ b/services/api/db/migrate/20140421151940_timestamps_not_null.rb
@@ -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'
diff --git a/services/api/db/migrate/20140422011506_pipeline_instance_state.rb b/services/api/db/migrate/20140422011506_pipeline_instance_state.rb
index db84c2cfa..89a48d094 100644
--- a/services/api/db/migrate/20140422011506_pipeline_instance_state.rb
+++ b/services/api/db/migrate/20140422011506_pipeline_instance_state.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class PipelineInstanceState < ActiveRecord::Migration
+class PipelineInstanceState < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb b/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
index 428ea57a6..b1b679d64 100644
--- a/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
+++ b/services/api/db/migrate/20140423132913_add_object_owner_to_logs.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddObjectOwnerToLogs < ActiveRecord::Migration
+class AddObjectOwnerToLogs < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140423133559_new_scope_format.rb b/services/api/db/migrate/20140423133559_new_scope_format.rb
index b706edb7f..6c1dc7452 100644
--- a/services/api/db/migrate/20140423133559_new_scope_format.rb
+++ b/services/api/db/migrate/20140423133559_new_scope_format.rb
@@ -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 =
diff --git a/services/api/db/migrate/20140501165548_add_unique_name_index_to_links.rb b/services/api/db/migrate/20140501165548_add_unique_name_index_to_links.rb
index c7f6e7a85..9c177f788 100644
--- a/services/api/db/migrate/20140501165548_add_unique_name_index_to_links.rb
+++ b/services/api/db/migrate/20140501165548_add_unique_name_index_to_links.rb
@@ -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
diff --git a/services/api/db/migrate/20140519205916_create_keep_services.rb b/services/api/db/migrate/20140519205916_create_keep_services.rb
index e6cb96753..8ee3b4972 100644
--- a/services/api/db/migrate/20140519205916_create_keep_services.rb
+++ b/services/api/db/migrate/20140519205916_create_keep_services.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CreateKeepServices < ActiveRecord::Migration
+class CreateKeepServices < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def change
diff --git a/services/api/db/migrate/20140527152921_add_description_to_pipeline_templates.rb b/services/api/db/migrate/20140527152921_add_description_to_pipeline_templates.rb
index 09e2ce138..bc9b50ea3 100644
--- a/services/api/db/migrate/20140527152921_add_description_to_pipeline_templates.rb
+++ b/services/api/db/migrate/20140527152921_add_description_to_pipeline_templates.rb
@@ -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
diff --git a/services/api/db/migrate/20140530200539_add_supplied_script_version.rb b/services/api/db/migrate/20140530200539_add_supplied_script_version.rb
index 62b1df087..a828f7d17 100644
--- a/services/api/db/migrate/20140530200539_add_supplied_script_version.rb
+++ b/services/api/db/migrate/20140530200539_add_supplied_script_version.rb
@@ -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
diff --git a/services/api/db/migrate/20140601022548_remove_name_from_collections.rb b/services/api/db/migrate/20140601022548_remove_name_from_collections.rb
index d76ac930c..3d08e0f5b 100644
--- a/services/api/db/migrate/20140601022548_remove_name_from_collections.rb
+++ b/services/api/db/migrate/20140601022548_remove_name_from_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20140602143352_remove_active_and_success_from_pipeline_instances.rb b/services/api/db/migrate/20140602143352_remove_active_and_success_from_pipeline_instances.rb
index 511138ff5..46a653d1e 100644
--- a/services/api/db/migrate/20140602143352_remove_active_and_success_from_pipeline_instances.rb
+++ b/services/api/db/migrate/20140602143352_remove_active_and_success_from_pipeline_instances.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class RemoveActiveAndSuccessFromPipelineInstances < ActiveRecord::Migration
+class RemoveActiveAndSuccessFromPipelineInstances < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140607150616_rename_folder_to_project.rb b/services/api/db/migrate/20140607150616_rename_folder_to_project.rb
index f6daa9788..06c7e3622 100644
--- a/services/api/db/migrate/20140607150616_rename_folder_to_project.rb
+++ b/services/api/db/migrate/20140607150616_rename_folder_to_project.rb
@@ -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
diff --git a/services/api/db/migrate/20140611173003_add_docker_locator_to_jobs.rb b/services/api/db/migrate/20140611173003_add_docker_locator_to_jobs.rb
index 2be03f5fc..ed55f1320 100644
--- a/services/api/db/migrate/20140611173003_add_docker_locator_to_jobs.rb
+++ b/services/api/db/migrate/20140611173003_add_docker_locator_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20140627210837_anonymous_group.rb b/services/api/db/migrate/20140627210837_anonymous_group.rb
index cd49da426..8be5f666e 100644
--- a/services/api/db/migrate/20140627210837_anonymous_group.rb
+++ b/services/api/db/migrate/20140627210837_anonymous_group.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AnonymousGroup < ActiveRecord::Migration
+class AnonymousGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140709172343_job_task_serial_qsequence.rb b/services/api/db/migrate/20140709172343_job_task_serial_qsequence.rb
index 53e087a1f..299062141 100644
--- a/services/api/db/migrate/20140709172343_job_task_serial_qsequence.rb
+++ b/services/api/db/migrate/20140709172343_job_task_serial_qsequence.rb
@@ -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
diff --git a/services/api/db/migrate/20140714184006_empty_collection.rb b/services/api/db/migrate/20140714184006_empty_collection.rb
index 0c0eba6bd..33921dcde 100644
--- a/services/api/db/migrate/20140714184006_empty_collection.rb
+++ b/services/api/db/migrate/20140714184006_empty_collection.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class EmptyCollection < ActiveRecord::Migration
+class EmptyCollection < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb b/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb
index 003f74b13..62ef93f8c 100644
--- a/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb
+++ b/services/api/db/migrate/20140811184643_collection_use_regular_uuids.rb
@@ -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
diff --git a/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb b/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb
index a226836b6..8acae9f20 100644
--- a/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb
+++ b/services/api/db/migrate/20140817035914_add_unique_name_constraints.rb
@@ -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|
diff --git a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb
index 13224205e..9f003ba8d 100644
--- a/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb
+++ b/services/api/db/migrate/20140818125735_add_not_null_constraint_to_group_name.rb
@@ -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
diff --git a/services/api/db/migrate/20140826180337_remove_output_is_persistent_column.rb b/services/api/db/migrate/20140826180337_remove_output_is_persistent_column.rb
index dbb4c06d7..453ce90fd 100644
--- a/services/api/db/migrate/20140826180337_remove_output_is_persistent_column.rb
+++ b/services/api/db/migrate/20140826180337_remove_output_is_persistent_column.rb
@@ -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
diff --git a/services/api/db/migrate/20140828141043_job_priority_fixup.rb b/services/api/db/migrate/20140828141043_job_priority_fixup.rb
index 87f29b635..e780d19fc 100644
--- a/services/api/db/migrate/20140828141043_job_priority_fixup.rb
+++ b/services/api/db/migrate/20140828141043_job_priority_fixup.rb
@@ -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
diff --git a/services/api/db/migrate/20140909183946_add_start_finish_time_to_tasks_and_pipelines.rb b/services/api/db/migrate/20140909183946_add_start_finish_time_to_tasks_and_pipelines.rb
index df64127f9..85d639492 100644
--- a/services/api/db/migrate/20140909183946_add_start_finish_time_to_tasks_and_pipelines.rb
+++ b/services/api/db/migrate/20140909183946_add_start_finish_time_to_tasks_and_pipelines.rb
@@ -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
diff --git a/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb b/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
index 1ac030bad..9a2c49dd6 100644
--- a/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
+++ b/services/api/db/migrate/20140911221252_add_description_to_pipeline_instances_and_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb b/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb
index c111708e9..96cf00bbc 100644
--- a/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb
+++ b/services/api/db/migrate/20140918141529_change_user_owner_uuid_not_null.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration
+class ChangeUserOwnerUuidNotNull < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140918153541_add_properties_to_node.rb b/services/api/db/migrate/20140918153541_add_properties_to_node.rb
index 513ca04cb..c72031837 100644
--- a/services/api/db/migrate/20140918153541_add_properties_to_node.rb
+++ b/services/api/db/migrate/20140918153541_add_properties_to_node.rb
@@ -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
diff --git a/services/api/db/migrate/20140918153705_add_state_to_job.rb b/services/api/db/migrate/20140918153705_add_state_to_job.rb
index 77310d3ac..46a5e8436 100644
--- a/services/api/db/migrate/20140918153705_add_state_to_job.rb
+++ b/services/api/db/migrate/20140918153705_add_state_to_job.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AddStateToJob < ActiveRecord::Migration
+class AddStateToJob < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20140924091559_add_job_uuid_to_nodes.rb b/services/api/db/migrate/20140924091559_add_job_uuid_to_nodes.rb
index 55378d713..e7876c68b 100644
--- a/services/api/db/migrate/20140924091559_add_job_uuid_to_nodes.rb
+++ b/services/api/db/migrate/20140924091559_add_job_uuid_to_nodes.rb
@@ -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
diff --git a/services/api/db/migrate/20141111133038_add_arvados_sdk_version_to_jobs.rb b/services/api/db/migrate/20141111133038_add_arvados_sdk_version_to_jobs.rb
index c0e3b3ba0..ba89a189a 100644
--- a/services/api/db/migrate/20141111133038_add_arvados_sdk_version_to_jobs.rb
+++ b/services/api/db/migrate/20141111133038_add_arvados_sdk_version_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20141208164553_owner_uuid_index.rb b/services/api/db/migrate/20141208164553_owner_uuid_index.rb
index a6d4e7640..a3f68954b 100644
--- a/services/api/db/migrate/20141208164553_owner_uuid_index.rb
+++ b/services/api/db/migrate/20141208164553_owner_uuid_index.rb
@@ -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
diff --git a/services/api/db/migrate/20141208174553_descriptions_are_strings.rb b/services/api/db/migrate/20141208174553_descriptions_are_strings.rb
index 554474d33..1cd662912 100644
--- a/services/api/db/migrate/20141208174553_descriptions_are_strings.rb
+++ b/services/api/db/migrate/20141208174553_descriptions_are_strings.rb
@@ -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
diff --git a/services/api/db/migrate/20141208174653_collection_file_names.rb b/services/api/db/migrate/20141208174653_collection_file_names.rb
index 50ab30c39..7abd778c0 100644
--- a/services/api/db/migrate/20141208174653_collection_file_names.rb
+++ b/services/api/db/migrate/20141208174653_collection_file_names.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class CollectionFileNames < ActiveRecord::Migration
+class CollectionFileNames < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20141208185217_search_index.rb b/services/api/db/migrate/20141208185217_search_index.rb
index c8e9fef87..abea1915f 100644
--- a/services/api/db/migrate/20141208185217_search_index.rb
+++ b/services/api/db/migrate/20141208185217_search_index.rb
@@ -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"],
diff --git a/services/api/db/migrate/20150122175935_no_description_in_search_index.rb b/services/api/db/migrate/20150122175935_no_description_in_search_index.rb
index 7371b0ea5..6a2960314 100644
--- a/services/api/db/migrate/20150122175935_no_description_in_search_index.rb
+++ b/services/api/db/migrate/20150122175935_no_description_in_search_index.rb
@@ -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|
diff --git a/services/api/db/migrate/20150123142953_full_text_search.rb b/services/api/db/migrate/20150123142953_full_text_search.rb
index b9b56a53c..39a62fcaf 100644
--- a/services/api/db/migrate/20150123142953_full_text_search.rb
+++ b/services/api/db/migrate/20150123142953_full_text_search.rb
@@ -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});"
diff --git a/services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb b/services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb
index 03e7fbba5..71f769c15 100644
--- a/services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb
+++ b/services/api/db/migrate/20150203180223_set_group_class_on_anonymous_group.rb
@@ -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
diff --git a/services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb b/services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb
index ea9f39354..745833003 100644
--- a/services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb
+++ b/services/api/db/migrate/20150206210804_all_users_can_read_anonymous_group.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class AllUsersCanReadAnonymousGroup < ActiveRecord::Migration
+class AllUsersCanReadAnonymousGroup < ActiveRecord::Migration[4.2]
   include CurrentApiClient
 
   def up
diff --git a/services/api/db/migrate/20150206230342_rename_replication_attributes.rb b/services/api/db/migrate/20150206230342_rename_replication_attributes.rb
index e6e54579a..b9ab9cd9d 100644
--- a/services/api/db/migrate/20150206230342_rename_replication_attributes.rb
+++ b/services/api/db/migrate/20150206230342_rename_replication_attributes.rb
@@ -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]]
diff --git a/services/api/db/migrate/20150216193428_collection_name_owner_unique_only_non_expired.rb b/services/api/db/migrate/20150216193428_collection_name_owner_unique_only_non_expired.rb
index 6e581883c..72ef88c18 100644
--- a/services/api/db/migrate/20150216193428_collection_name_owner_unique_only_non_expired.rb
+++ b/services/api/db/migrate/20150216193428_collection_name_owner_unique_only_non_expired.rb
@@ -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|
diff --git a/services/api/db/migrate/20150303210106_fix_collection_portable_data_hash_with_hinted_manifest.rb b/services/api/db/migrate/20150303210106_fix_collection_portable_data_hash_with_hinted_manifest.rb
index 31fc683e2..8814fc87d 100644
--- a/services/api/db/migrate/20150303210106_fix_collection_portable_data_hash_with_hinted_manifest.rb
+++ b/services/api/db/migrate/20150303210106_fix_collection_portable_data_hash_with_hinted_manifest.rb
@@ -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
diff --git a/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb b/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
index 96988e290..0aca20b27 100644
--- a/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
+++ b/services/api/db/migrate/20150312151136_change_collection_expires_at_to_datetime.rb
@@ -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
diff --git a/services/api/db/migrate/20150317132720_add_username_to_users.rb b/services/api/db/migrate/20150317132720_add_username_to_users.rb
index 79a076ddc..cb27515a1 100644
--- a/services/api/db/migrate/20150317132720_add_username_to_users.rb
+++ b/services/api/db/migrate/20150317132720_add_username_to_users.rb
@@ -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 =
diff --git a/services/api/db/migrate/20150324152204_backward_compatibility_for_user_repositories.rb b/services/api/db/migrate/20150324152204_backward_compatibility_for_user_repositories.rb
index dc7c1756c..51e901c00 100644
--- a/services/api/db/migrate/20150324152204_backward_compatibility_for_user_repositories.rb
+++ b/services/api/db/migrate/20150324152204_backward_compatibility_for_user_repositories.rb
@@ -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
diff --git a/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb b/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb
index 4e1379e2a..1930f1332 100644
--- a/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb
+++ b/services/api/db/migrate/20150423145759_no_filenames_in_collection_search_index.rb
@@ -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'
diff --git a/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb b/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
index a510c16cc..69e9f7f1f 100644
--- a/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
+++ b/services/api/db/migrate/20150512193020_read_only_on_keep_services.rb
@@ -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
diff --git a/services/api/db/migrate/20150526180251_leading_space_on_full_text_index.rb b/services/api/db/migrate/20150526180251_leading_space_on_full_text_index.rb
index 843837f70..373d7477b 100644
--- a/services/api/db/migrate/20150526180251_leading_space_on_full_text_index.rb
+++ b/services/api/db/migrate/20150526180251_leading_space_on_full_text_index.rb
@@ -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.
diff --git a/services/api/db/migrate/20151202151426_create_containers_and_requests.rb b/services/api/db/migrate/20151202151426_create_containers_and_requests.rb
index 2bda546e9..ee6f5ec64 100644
--- a/services/api/db/migrate/20151202151426_create_containers_and_requests.rb
+++ b/services/api/db/migrate/20151202151426_create_containers_and_requests.rb
@@ -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
diff --git a/services/api/db/migrate/20151215134304_fix_containers_index.rb b/services/api/db/migrate/20151215134304_fix_containers_index.rb
index a112bea62..ba2602076 100644
--- a/services/api/db/migrate/20151215134304_fix_containers_index.rb
+++ b/services/api/db/migrate/20151215134304_fix_containers_index.rb
@@ -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'
diff --git a/services/api/db/migrate/20151229214707_add_exit_code_to_containers.rb b/services/api/db/migrate/20151229214707_add_exit_code_to_containers.rb
index e28ec2870..1049da8df 100644
--- a/services/api/db/migrate/20151229214707_add_exit_code_to_containers.rb
+++ b/services/api/db/migrate/20151229214707_add_exit_code_to_containers.rb
@@ -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
diff --git a/services/api/db/migrate/20160208210629_add_uuid_to_api_client_authorization.rb b/services/api/db/migrate/20160208210629_add_uuid_to_api_client_authorization.rb
index 30f8dd0e2..34ad4e763 100644
--- a/services/api/db/migrate/20160208210629_add_uuid_to_api_client_authorization.rb
+++ b/services/api/db/migrate/20160208210629_add_uuid_to_api_client_authorization.rb
@@ -4,7 +4,7 @@
 
 require 'has_uuid'
 
-class AddUuidToApiClientAuthorization < ActiveRecord::Migration
+class AddUuidToApiClientAuthorization < ActiveRecord::Migration[4.2]
   extend HasUuid::ClassMethods
 
   def up
diff --git a/services/api/db/migrate/20160209155729_add_uuid_to_api_token_search_index.rb b/services/api/db/migrate/20160209155729_add_uuid_to_api_token_search_index.rb
index d5c758738..c8a8b5c44 100644
--- a/services/api/db/migrate/20160209155729_add_uuid_to_api_token_search_index.rb
+++ b/services/api/db/migrate/20160209155729_add_uuid_to_api_token_search_index.rb
@@ -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'
diff --git a/services/api/db/migrate/20160324144017_add_components_to_job.rb b/services/api/db/migrate/20160324144017_add_components_to_job.rb
index ea6ca6353..99b24428f 100644
--- a/services/api/db/migrate/20160324144017_add_components_to_job.rb
+++ b/services/api/db/migrate/20160324144017_add_components_to_job.rb
@@ -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
diff --git a/services/api/db/migrate/20160506175108_add_auths_to_container.rb b/services/api/db/migrate/20160506175108_add_auths_to_container.rb
index 163289bff..392e38a5d 100644
--- a/services/api/db/migrate/20160506175108_add_auths_to_container.rb
+++ b/services/api/db/migrate/20160506175108_add_auths_to_container.rb
@@ -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
diff --git a/services/api/db/migrate/20160509143250_add_auth_and_lock_to_container_index.rb b/services/api/db/migrate/20160509143250_add_auth_and_lock_to_container_index.rb
index 34759044f..2fcfc29d8 100644
--- a/services/api/db/migrate/20160509143250_add_auth_and_lock_to_container_index.rb
+++ b/services/api/db/migrate/20160509143250_add_auth_and_lock_to_container_index.rb
@@ -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
diff --git a/services/api/db/migrate/20160808151559_create_workflows.rb b/services/api/db/migrate/20160808151559_create_workflows.rb
index b15a8e45e..29960abf6 100644
--- a/services/api/db/migrate/20160808151559_create_workflows.rb
+++ b/services/api/db/migrate/20160808151559_create_workflows.rb
@@ -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
diff --git a/services/api/db/migrate/20160819195557_add_script_parameters_digest_to_jobs.rb b/services/api/db/migrate/20160819195557_add_script_parameters_digest_to_jobs.rb
index 1a480767e..16f7a6b97 100644
--- a/services/api/db/migrate/20160819195557_add_script_parameters_digest_to_jobs.rb
+++ b/services/api/db/migrate/20160819195557_add_script_parameters_digest_to_jobs.rb
@@ -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
diff --git a/services/api/db/migrate/20160819195725_populate_script_parameters_digest.rb b/services/api/db/migrate/20160819195725_populate_script_parameters_digest.rb
index 320e0834f..38c862713 100644
--- a/services/api/db/migrate/20160819195725_populate_script_parameters_digest.rb
+++ b/services/api/db/migrate/20160819195725_populate_script_parameters_digest.rb
@@ -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
diff --git a/services/api/db/migrate/20160901210110_repair_script_parameters_digest.rb b/services/api/db/migrate/20160901210110_repair_script_parameters_digest.rb
index 949bccb3f..6afd9bfcc 100644
--- a/services/api/db/migrate/20160901210110_repair_script_parameters_digest.rb
+++ b/services/api/db/migrate/20160901210110_repair_script_parameters_digest.rb
@@ -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
diff --git a/services/api/db/migrate/20160909181442_rename_workflow_to_definition.rb b/services/api/db/migrate/20160909181442_rename_workflow_to_definition.rb
index 61d327b29..63e505db4 100644
--- a/services/api/db/migrate/20160909181442_rename_workflow_to_definition.rb
+++ b/services/api/db/migrate/20160909181442_rename_workflow_to_definition.rb
@@ -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
diff --git a/services/api/db/migrate/20160926194129_add_container_count.rb b/services/api/db/migrate/20160926194129_add_container_count.rb
index 063ce9715..4166cc45e 100644
--- a/services/api/db/migrate/20160926194129_add_container_count.rb
+++ b/services/api/db/migrate/20160926194129_add_container_count.rb
@@ -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
diff --git a/services/api/db/migrate/20161019171346_add_use_existing_to_container_requests.rb b/services/api/db/migrate/20161019171346_add_use_existing_to_container_requests.rb
index 0ba04f6ae..62cb0edf6 100644
--- a/services/api/db/migrate/20161019171346_add_use_existing_to_container_requests.rb
+++ b/services/api/db/migrate/20161019171346_add_use_existing_to_container_requests.rb
@@ -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
diff --git a/services/api/db/migrate/20161111143147_add_scheduling_parameters_to_container.rb b/services/api/db/migrate/20161111143147_add_scheduling_parameters_to_container.rb
index 6820dfb4e..8c1e982d8 100644
--- a/services/api/db/migrate/20161111143147_add_scheduling_parameters_to_container.rb
+++ b/services/api/db/migrate/20161111143147_add_scheduling_parameters_to_container.rb
@@ -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
diff --git a/services/api/db/migrate/20161115171221_add_output_and_log_uuid_to_container_request.rb b/services/api/db/migrate/20161115171221_add_output_and_log_uuid_to_container_request.rb
index 168bd4fd0..b5d76d043 100644
--- a/services/api/db/migrate/20161115171221_add_output_and_log_uuid_to_container_request.rb
+++ b/services/api/db/migrate/20161115171221_add_output_and_log_uuid_to_container_request.rb
@@ -4,7 +4,7 @@
 
 require 'has_uuid'
 
-class AddOutputAndLogUuidToContainerRequest < ActiveRecord::Migration
+class AddOutputAndLogUuidToContainerRequest < ActiveRecord::Migration[4.2]
   extend HasUuid::ClassMethods
 
   def up
diff --git a/services/api/db/migrate/20161115174218_add_output_and_log_uuids_to_container_request_search_index.rb b/services/api/db/migrate/20161115174218_add_output_and_log_uuids_to_container_request_search_index.rb
index 9d1e75275..c5286d628 100644
--- a/services/api/db/migrate/20161115174218_add_output_and_log_uuids_to_container_request_search_index.rb
+++ b/services/api/db/migrate/20161115174218_add_output_and_log_uuids_to_container_request_search_index.rb
@@ -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'
diff --git a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
index 0ec52124d..55ab71157 100644
--- a/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
+++ b/services/api/db/migrate/20161213172944_full_text_search_indexes.rb
@@ -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",
diff --git a/services/api/db/migrate/20161222153434_split_expiry_to_trash_and_delete.rb b/services/api/db/migrate/20161222153434_split_expiry_to_trash_and_delete.rb
index c3bea69f8..02166f3b6 100644
--- a/services/api/db/migrate/20161222153434_split_expiry_to_trash_and_delete.rb
+++ b/services/api/db/migrate/20161222153434_split_expiry_to_trash_and_delete.rb
@@ -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)
diff --git a/services/api/db/migrate/20161223090712_add_output_name_to_container_requests.rb b/services/api/db/migrate/20161223090712_add_output_name_to_container_requests.rb
index aac8ade5b..426c2b96e 100644
--- a/services/api/db/migrate/20161223090712_add_output_name_to_container_requests.rb
+++ b/services/api/db/migrate/20161223090712_add_output_name_to_container_requests.rb
@@ -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
diff --git a/services/api/db/migrate/20170102153111_add_output_name_to_container_request_search_index.rb b/services/api/db/migrate/20170102153111_add_output_name_to_container_request_search_index.rb
index 1b846fdbe..bf54a2313 100644
--- a/services/api/db/migrate/20170102153111_add_output_name_to_container_request_search_index.rb
+++ b/services/api/db/migrate/20170102153111_add_output_name_to_container_request_search_index.rb
@@ -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'
diff --git a/services/api/db/migrate/20170105160301_add_output_name_to_cr_fts_index.rb b/services/api/db/migrate/20170105160301_add_output_name_to_cr_fts_index.rb
index 220323d15..704be954e 100644
--- a/services/api/db/migrate/20170105160301_add_output_name_to_cr_fts_index.rb
+++ b/services/api/db/migrate/20170105160301_add_output_name_to_cr_fts_index.rb
@@ -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"
diff --git a/services/api/db/migrate/20170105160302_set_finished_at_on_finished_pipeline_instances.rb b/services/api/db/migrate/20170105160302_set_finished_at_on_finished_pipeline_instances.rb
index cc56e42ae..928db1529 100644
--- a/services/api/db/migrate/20170105160302_set_finished_at_on_finished_pipeline_instances.rb
+++ b/services/api/db/migrate/20170105160302_set_finished_at_on_finished_pipeline_instances.rb
@@ -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
diff --git a/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb b/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
index d4e13c9dd..2d641c172 100644
--- a/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
+++ b/services/api/db/migrate/20170216170823_no_cr_mounts_and_workflow_def_in_full_text_search_index.rb
@@ -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",
diff --git a/services/api/db/migrate/20170301225558_no_downgrade_after_json.rb b/services/api/db/migrate/20170301225558_no_downgrade_after_json.rb
index 5b8c6a71d..295511d08 100644
--- a/services/api/db/migrate/20170301225558_no_downgrade_after_json.rb
+++ b/services/api/db/migrate/20170301225558_no_downgrade_after_json.rb
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-class NoDowngradeAfterJson < ActiveRecord::Migration
+class NoDowngradeAfterJson < ActiveRecord::Migration[4.2]
   def up
   end
 
diff --git a/services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb b/services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb
index cc8783134..ce241bfb6 100644
--- a/services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb
+++ b/services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb
@@ -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
diff --git a/services/api/db/migrate/20170328215436_add_portable_data_hash_index_to_collections.rb b/services/api/db/migrate/20170328215436_add_portable_data_hash_index_to_collections.rb
index c9b0a8ea9..c94f33133 100644
--- a/services/api/db/migrate/20170328215436_add_portable_data_hash_index_to_collections.rb
+++ b/services/api/db/migrate/20170328215436_add_portable_data_hash_index_to_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20170330012505_add_output_ttl_to_container_requests.rb b/services/api/db/migrate/20170330012505_add_output_ttl_to_container_requests.rb
index 99b3629a3..259278dcf 100644
--- a/services/api/db/migrate/20170330012505_add_output_ttl_to_container_requests.rb
+++ b/services/api/db/migrate/20170330012505_add_output_ttl_to_container_requests.rb
@@ -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
diff --git a/services/api/db/migrate/20170419173031_add_created_by_job_task_index_to_job_tasks.rb b/services/api/db/migrate/20170419173031_add_created_by_job_task_index_to_job_tasks.rb
index e11c86f9e..1c43656b5 100644
--- a/services/api/db/migrate/20170419173031_add_created_by_job_task_index_to_job_tasks.rb
+++ b/services/api/db/migrate/20170419173031_add_created_by_job_task_index_to_job_tasks.rb
@@ -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
diff --git a/services/api/db/migrate/20170419173712_add_object_owner_index_to_logs.rb b/services/api/db/migrate/20170419173712_add_object_owner_index_to_logs.rb
index 44ae7e5ef..c02b469ef 100644
--- a/services/api/db/migrate/20170419173712_add_object_owner_index_to_logs.rb
+++ b/services/api/db/migrate/20170419173712_add_object_owner_index_to_logs.rb
@@ -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
diff --git a/services/api/db/migrate/20170419175801_add_requesting_container_index_to_container_requests.rb b/services/api/db/migrate/20170419175801_add_requesting_container_index_to_container_requests.rb
index 2dd1a0ca1..45106399a 100644
--- a/services/api/db/migrate/20170419175801_add_requesting_container_index_to_container_requests.rb
+++ b/services/api/db/migrate/20170419175801_add_requesting_container_index_to_container_requests.rb
@@ -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
diff --git a/services/api/db/migrate/20170628185847_jobs_yaml_to_json.rb b/services/api/db/migrate/20170628185847_jobs_yaml_to_json.rb
index 2c90c9a04..31238a1b1 100644
--- a/services/api/db/migrate/20170628185847_jobs_yaml_to_json.rb
+++ b/services/api/db/migrate/20170628185847_jobs_yaml_to_json.rb
@@ -4,7 +4,7 @@
 
 require 'migrate_yaml_to_json'
 
-class JobsYamlToJson < ActiveRecord::Migration
+class JobsYamlToJson < ActiveRecord::Migration[4.2]
   def up
     [
       'components',
diff --git a/services/api/db/migrate/20170704160233_yaml_to_json.rb b/services/api/db/migrate/20170704160233_yaml_to_json.rb
index 707c3dd94..15b720477 100644
--- a/services/api/db/migrate/20170704160233_yaml_to_json.rb
+++ b/services/api/db/migrate/20170704160233_yaml_to_json.rb
@@ -4,7 +4,7 @@
 
 require 'migrate_yaml_to_json'
 
-class YamlToJson < ActiveRecord::Migration
+class YamlToJson < ActiveRecord::Migration[4.2]
   def up
     [
       ['collections', 'properties'],
diff --git a/services/api/db/migrate/20170706141334_json_collection_properties.rb b/services/api/db/migrate/20170706141334_json_collection_properties.rb
index 921803a29..1c78b53be 100644
--- a/services/api/db/migrate/20170706141334_json_collection_properties.rb
+++ b/services/api/db/migrate/20170706141334_json_collection_properties.rb
@@ -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
diff --git a/services/api/db/migrate/20170824202826_trashable_groups.rb b/services/api/db/migrate/20170824202826_trashable_groups.rb
index 17fc31ff2..81a472265 100644
--- a/services/api/db/migrate/20170824202826_trashable_groups.rb
+++ b/services/api/db/migrate/20170824202826_trashable_groups.rb
@@ -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)
diff --git a/services/api/db/migrate/20170906224040_materialized_permission_view.rb b/services/api/db/migrate/20170906224040_materialized_permission_view.rb
index b864f75c1..6f4a5b971 100644
--- a/services/api/db/migrate/20170906224040_materialized_permission_view.rb
+++ b/services/api/db/migrate/20170906224040_materialized_permission_view.rb
@@ -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]
 
diff --git a/services/api/db/migrate/20171027183824_add_index_to_containers.rb b/services/api/db/migrate/20171027183824_add_index_to_containers.rb
index aa42423a4..a41e0693f 100644
--- a/services/api/db/migrate/20171027183824_add_index_to_containers.rb
+++ b/services/api/db/migrate/20171027183824_add_index_to_containers.rb
@@ -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)")
diff --git a/services/api/db/migrate/20171208203841_fix_trash_flag_follow.rb b/services/api/db/migrate/20171208203841_fix_trash_flag_follow.rb
index c9e50a64b..d071c32f0 100644
--- a/services/api/db/migrate/20171208203841_fix_trash_flag_follow.rb
+++ b/services/api/db/migrate/20171208203841_fix_trash_flag_follow.rb
@@ -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(
diff --git a/services/api/db/migrate/20171212153352_add_gin_index_to_collection_properties.rb b/services/api/db/migrate/20171212153352_add_gin_index_to_collection_properties.rb
index 0183ef6dc..a68168cac 100644
--- a/services/api/db/migrate/20171212153352_add_gin_index_to_collection_properties.rb
+++ b/services/api/db/migrate/20171212153352_add_gin_index_to_collection_properties.rb
@@ -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
diff --git a/services/api/db/migrate/20180216203422_add_storage_classes_to_collections.rb b/services/api/db/migrate/20180216203422_add_storage_classes_to_collections.rb
index 112c2ba89..c730e8c9b 100644
--- a/services/api/db/migrate/20180216203422_add_storage_classes_to_collections.rb
+++ b/services/api/db/migrate/20180216203422_add_storage_classes_to_collections.rb
@@ -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 => []
diff --git a/services/api/db/migrate/20180228220311_add_secret_mounts_to_containers.rb b/services/api/db/migrate/20180228220311_add_secret_mounts_to_containers.rb
index a161f633d..7ea71caf8 100644
--- a/services/api/db/migrate/20180228220311_add_secret_mounts_to_containers.rb
+++ b/services/api/db/migrate/20180228220311_add_secret_mounts_to_containers.rb
@@ -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: {}
diff --git a/services/api/db/migrate/20180313180114_change_container_priority_bigint.rb b/services/api/db/migrate/20180313180114_change_container_priority_bigint.rb
index 529126b29..5359ead34 100644
--- a/services/api/db/migrate/20180313180114_change_container_priority_bigint.rb
+++ b/services/api/db/migrate/20180313180114_change_container_priority_bigint.rb
@@ -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
diff --git a/services/api/db/migrate/20180501182859_add_redirect_to_user_uuid_to_users.rb b/services/api/db/migrate/20180501182859_add_redirect_to_user_uuid_to_users.rb
index 10b35a7ab..1d2b92a75 100644
--- a/services/api/db/migrate/20180501182859_add_redirect_to_user_uuid_to_users.rb
+++ b/services/api/db/migrate/20180501182859_add_redirect_to_user_uuid_to_users.rb
@@ -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
diff --git a/services/api/db/migrate/20180514135529_add_container_auth_uuid_index.rb b/services/api/db/migrate/20180514135529_add_container_auth_uuid_index.rb
index 79e777e0a..9911be4bf 100644
--- a/services/api/db/migrate/20180514135529_add_container_auth_uuid_index.rb
+++ b/services/api/db/migrate/20180514135529_add_container_auth_uuid_index.rb
@@ -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
diff --git a/services/api/db/migrate/20180607175050_properties_to_jsonb.rb b/services/api/db/migrate/20180607175050_properties_to_jsonb.rb
index 988227a62..490f65adb 100644
--- a/services/api/db/migrate/20180607175050_properties_to_jsonb.rb
+++ b/services/api/db/migrate/20180607175050_properties_to_jsonb.rb
@@ -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"],
diff --git a/services/api/db/migrate/20180608123145_add_properties_to_groups.rb b/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
index 12c6696c6..4824a686c 100644
--- a/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
+++ b/services/api/db/migrate/20180608123145_add_properties_to_groups.rb
@@ -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);")
diff --git a/services/api/db/migrate/20180806133039_index_all_filenames.rb b/services/api/db/migrate/20180806133039_index_all_filenames.rb
index 36b155cc2..6597798b2 100644
--- a/services/api/db/migrate/20180806133039_index_all_filenames.rb
+++ b/services/api/db/migrate/20180806133039_index_all_filenames.rb
@@ -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
diff --git a/services/api/db/migrate/20180820130357_add_pdh_and_trash_index_to_collections.rb b/services/api/db/migrate/20180820130357_add_pdh_and_trash_index_to_collections.rb
index 8d1cdf39b..28bbf5f48 100644
--- a/services/api/db/migrate/20180820130357_add_pdh_and_trash_index_to_collections.rb
+++ b/services/api/db/migrate/20180820130357_add_pdh_and_trash_index_to_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20180820132617_add_lock_index_to_containers.rb b/services/api/db/migrate/20180820132617_add_lock_index_to_containers.rb
index 94ca10061..6d2261889 100644
--- a/services/api/db/migrate/20180820132617_add_lock_index_to_containers.rb
+++ b/services/api/db/migrate/20180820132617_add_lock_index_to_containers.rb
@@ -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]
diff --git a/services/api/db/migrate/20180820135808_drop_pdh_index_from_collections.rb b/services/api/db/migrate/20180820135808_drop_pdh_index_from_collections.rb
index 3d757e411..afa1b62e2 100644
--- a/services/api/db/migrate/20180820135808_drop_pdh_index_from_collections.rb
+++ b/services/api/db/migrate/20180820135808_drop_pdh_index_from_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20180824152014_add_md5_index_to_containers.rb b/services/api/db/migrate/20180824152014_add_md5_index_to_containers.rb
index 82b216351..e6e0597b7 100644
--- a/services/api/db/migrate/20180824152014_add_md5_index_to_containers.rb
+++ b/services/api/db/migrate/20180824152014_add_md5_index_to_containers.rb
@@ -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
diff --git a/services/api/db/migrate/20180824155207_add_queue_index_to_containers.rb b/services/api/db/migrate/20180824155207_add_queue_index_to_containers.rb
index 724510871..3c8079250 100644
--- a/services/api/db/migrate/20180824155207_add_queue_index_to_containers.rb
+++ b/services/api/db/migrate/20180824155207_add_queue_index_to_containers.rb
@@ -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
diff --git a/services/api/db/migrate/20180904110712_add_runtime_status_to_containers.rb b/services/api/db/migrate/20180904110712_add_runtime_status_to_containers.rb
index 4c963e6fd..66cdc4290 100644
--- a/services/api/db/migrate/20180904110712_add_runtime_status_to_containers.rb
+++ b/services/api/db/migrate/20180904110712_add_runtime_status_to_containers.rb
@@ -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
diff --git a/services/api/db/migrate/20180913175443_add_version_info_to_collections.rb b/services/api/db/migrate/20180913175443_add_version_info_to_collections.rb
index a624dd9af..b5a8b7171 100644
--- a/services/api/db/migrate/20180913175443_add_version_info_to_collections.rb
+++ b/services/api/db/migrate/20180913175443_add_version_info_to_collections.rb
@@ -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|
diff --git a/services/api/db/migrate/20180915155335_set_current_version_uuid_on_collections.rb b/services/api/db/migrate/20180915155335_set_current_version_uuid_on_collections.rb
index 12a08e07d..4190f9ba8 100644
--- a/services/api/db/migrate/20180915155335_set_current_version_uuid_on_collections.rb
+++ b/services/api/db/migrate/20180915155335_set_current_version_uuid_on_collections.rb
@@ -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")
diff --git a/services/api/db/migrate/20180917200000_replace_full_text_indexes.rb b/services/api/db/migrate/20180917200000_replace_full_text_indexes.rb
index b0eea9e7a..bdb51b891 100644
--- a/services/api/db/migrate/20180917200000_replace_full_text_indexes.rb
+++ b/services/api/db/migrate/20180917200000_replace_full_text_indexes.rb
@@ -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
diff --git a/services/api/db/migrate/20180917205609_recompute_file_names_index.rb b/services/api/db/migrate/20180917205609_recompute_file_names_index.rb
index e6860964b..b32142214 100644
--- a/services/api/db/migrate/20180917205609_recompute_file_names_index.rb
+++ b/services/api/db/migrate/20180917205609_recompute_file_names_index.rb
@@ -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|
diff --git a/services/api/db/migrate/20180919001158_recreate_collection_unique_name_index.rb b/services/api/db/migrate/20180919001158_recreate_collection_unique_name_index.rb
index 640395618..7b4558dba 100644
--- a/services/api/db/migrate/20180919001158_recreate_collection_unique_name_index.rb
+++ b/services/api/db/migrate/20180919001158_recreate_collection_unique_name_index.rb
@@ -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,
diff --git a/services/api/db/migrate/20181001175023_add_preserve_version_to_collections.rb b/services/api/db/migrate/20181001175023_add_preserve_version_to_collections.rb
index fbdc397fc..4a18f09ea 100644
--- a/services/api/db/migrate/20181001175023_add_preserve_version_to_collections.rb
+++ b/services/api/db/migrate/20181001175023_add_preserve_version_to_collections.rb
@@ -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
diff --git a/services/api/db/migrate/20181004131141_add_current_version_uuid_to_collection_search_index.rb b/services/api/db/migrate/20181004131141_add_current_version_uuid_to_collection_search_index.rb
index 63e99191a..25ddfec07 100644
--- a/services/api/db/migrate/20181004131141_add_current_version_uuid_to_collection_search_index.rb
+++ b/services/api/db/migrate/20181004131141_add_current_version_uuid_to_collection_search_index.rb
@@ -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
diff --git a/services/api/db/migrate/20181005192222_add_container_runtime_token.rb b/services/api/db/migrate/20181005192222_add_container_runtime_token.rb
index 0f2eaee25..630b9f24e 100644
--- a/services/api/db/migrate/20181005192222_add_container_runtime_token.rb
+++ b/services/api/db/migrate/20181005192222_add_container_runtime_token.rb
@@ -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
diff --git a/services/api/db/migrate/20181011184200_add_runtime_token_to_container.rb b/services/api/db/migrate/20181011184200_add_runtime_token_to_container.rb
index c4d0603ab..d48df6173 100644
--- a/services/api/db/migrate/20181011184200_add_runtime_token_to_container.rb
+++ b/services/api/db/migrate/20181011184200_add_runtime_token_to_container.rb
@@ -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
diff --git a/services/api/db/migrate/20181213183234_add_expression_index_to_links.rb b/services/api/db/migrate/20181213183234_add_expression_index_to_links.rb
index e8776a651..94aab8bdf 100644
--- a/services/api/db/migrate/20181213183234_add_expression_index_to_links.rb
+++ b/services/api/db/migrate/20181213183234_add_expression_index_to_links.rb
@@ -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))'
diff --git a/services/api/db/migrate/20190214214814_add_container_lock_count.rb b/services/api/db/migrate/20190214214814_add_container_lock_count.rb
index 1208d30c8..34f70daba 100644
--- a/services/api/db/migrate/20190214214814_add_container_lock_count.rb
+++ b/services/api/db/migrate/20190214214814_add_container_lock_count.rb
@@ -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

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list