Sha256: cf594ff451ed6961d7e11a4104cb10c5454ed4b35a63b02028143fb03f23ab72
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
class AddConstraintsToMostRecentForImportRequestTransitions < ActiveRecord::Migration[5.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
6 entries across 6 versions & 6 rubygems