Sha256: 5a0a5e8138bafe120651e5bff0e124c9f314f6971ac49c8de6a198fa7605f964
Contents?: true
Size: 609 Bytes
Versions: 15
Compression:
Stored size: 609 Bytes
Contents
class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :import_request_transitions, [:import_request_id, :most_recent], unique: true, where: "most_recent", name: "index_import_request_transitions_parent_most_recent" # , algorithm: :concurrently change_column_null :import_request_transitions, :most_recent, false end def down remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent" change_column_null :import_request_transitions, :most_recent, true end end
Version data entries
15 entries across 15 versions & 4 rubygems