Sha256: 1c9663a48a4c265e145479c5fa6df76d09e95a98318232236a35175577de3fb0
Contents?: true
Size: 655 Bytes
Versions: 103
Compression:
Stored size: 655 Bytes
Contents
class AddConstraintsToMostRecentForResourceExportFileTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :resource_export_file_transitions, [:resource_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_resource_export_file_transitions_parent_most_recent" #, algorithm: :concurrently change_column_null :resource_export_file_transitions, :most_recent, false end def down remove_index :resource_export_file_transitions, name: "index_resource_export_file_transitions_parent_most_recent" change_column_null :resource_export_file_transitions, :most_recent, true end end
Version data entries
103 entries across 103 versions & 18 rubygems