Sha256: 6e05349ea82aae314ff16d0c3118501e9d4c2e951b3153c7fc12310ec4990f19
Contents?: true
Size: 469 Bytes
Versions: 23
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true class AddConstraintsToMostRecentForBaconTransitions < ActiveRecord::Migration disable_ddl_transaction! def up add_index :bacon_transitions, %i[bacon_id most_recent], unique: true, name: "index_bacon_transitions_parent_most_recent", algorithm: :concurrently end def down remove_index :bacon_transitions, name: "index_bacon_transitions_parent_most_recent" end end
Version data entries
23 entries across 23 versions & 1 rubygems