Sha256: bc435bb7dfb4cd82ab57616707f722751cc1ece49e8b1facc770db1ecf2e469e
Contents?: true
Size: 640 Bytes
Versions: 55
Compression:
Stored size: 640 Bytes
Contents
class AddConstraintsToMostRecentForUserCheckoutStatTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :user_checkout_stat_transitions, [:user_checkout_stat_id, :most_recent], unique: true, where: "most_recent", name: "index_user_checkout_stat_transitions_parent_most_recent" # , algorithm: :concurrently change_column_null :user_checkout_stat_transitions, :most_recent, false end def down remove_index :user_checkout_stat_transitions, name: "index_user_checkout_stat_transitions_parent_most_recent" change_column_null :user_checkout_stat_transitions, :most_recent, true end end
Version data entries
55 entries across 55 versions & 3 rubygems