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

Version Path
enju_bookmark-0.3.2 db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_biblio-0.4.0.rc.1 spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_biblio-0.4.0.beta.2 spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_biblio-0.4.0.beta.1 spec/dummy/db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_bookmark-0.3.1 db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_bookmark-0.3.0 db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb
enju_bookmark-0.3.0.beta.1 db/migrate/20180107172413_add_constraints_to_most_recent_for_bookmark_stat_transitions.rb