Sha256: 7dcacdc1d325dbe1f133e02cfb4a0c8b517063f81635d3ffe71d93db1f6f1d8d
Contents?: true
Size: 600 Bytes
Versions: 7
Compression:
Stored size: 600 Bytes
Contents
class AddConstraintsToMostRecentForBookmarkStatTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :bookmark_stat_transitions, [:bookmark_stat_id, :most_recent], unique: true, where: "most_recent", name: "index_bookmark_stat_transitions_parent_most_recent" #, algorithm: :concurrently change_column_null :bookmark_stat_transitions, :most_recent, false end def down remove_index :bookmark_stat_transitions, name: "index_bookmark_stat_transitions_parent_most_recent" change_column_null :bookmark_stat_transitions, :most_recent, true end end
Version data entries
7 entries across 7 versions & 2 rubygems