Sha256: e9c5f21da8a7a2dcb1997796fc5c4bd6be361001df5195bc6e7a9110d47a1aac
Contents?: true
Size: 554 Bytes
Versions: 20
Compression:
Stored size: 554 Bytes
Contents
class AddConstraintsToMostRecentForMessageTransitions < ActiveRecord::Migration[5.2] disable_ddl_transaction! def up add_index :message_transitions, [:message_id, :most_recent], unique: true, where: "most_recent", name: "index_message_transitions_parent_most_recent" # , algorithm: :concurrently change_column_null :message_transitions, :most_recent, false end def down remove_index :message_transitions, name: "index_message_transitions_parent_most_recent" change_column_null :message_transitions, :most_recent, true end end
Version data entries
20 entries across 20 versions & 6 rubygems