Sha256: a92883b0a335b799dffedb2e07fcd09c29b7d93ac5405d746d7321f6c19504a0
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
class AddConstraintsToMostRecentForResourceImportFileTransitions < ActiveRecord::Migration[5.2] disable_ddl_transaction! def up add_index :resource_import_file_transitions, [:resource_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_import_file_transitions_parent_most_recent" #, algorithm: :concurrently change_column_null :resource_import_file_transitions, :most_recent, false end def down remove_index :resource_import_file_transitions, name: "index_resource_import_file_transitions_parent_most_recent" change_column_null :resource_import_file_transitions, :most_recent, true end end
Version data entries
6 entries across 6 versions & 6 rubygems