Sha256: dd0b1e9366f4996fb4267b07f96ebea020d25fe0e11bc5f3cf8355a1871acc5c
Contents?: true
Size: 708 Bytes
Versions: 55
Compression:
Stored size: 708 Bytes
Contents
class AddConstraintsToMostRecentForManifestationCheckoutStatTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :manifestation_checkout_stat_transitions, [:manifestation_checkout_stat_id, :most_recent], unique: true, where: "most_recent", name: "index_manifestation_checkout_stat_transitions_parent_most_rece" # , algorithm: :concurrently change_column_null :manifestation_checkout_stat_transitions, :most_recent, false end def down remove_index :manifestation_checkout_stat_transitions, name: "index_manifestation_checkout_stat_transitions_parent_most_rece" change_column_null :manifestation_checkout_stat_transitions, :most_recent, true end end
Version data entries
55 entries across 55 versions & 3 rubygems