Sha256: 3f164facacbae8ede2cdb18c0562940b53156df04942e9a610eb8a3335d10473
Contents?: true
Size: 702 Bytes
Versions: 55
Compression:
Stored size: 702 Bytes
Contents
class AddConstraintsToMostRecentForManifestationReserveStatTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :manifestation_reserve_stat_transitions, [:manifestation_reserve_stat_id, :most_recent], unique: true, where: "most_recent", name: "index_manifestation_reserve_stat_transitions_parent_most_recen" # , algorithm: :concurrently change_column_null :manifestation_reserve_stat_transitions, :most_recent, false end def down remove_index :manifestation_reserve_stat_transitions, name: "index_manifestation_reserve_stat_transitions_parent_most_recen" change_column_null :manifestation_reserve_stat_transitions, :most_recent, true end end
Version data entries
55 entries across 55 versions & 3 rubygems