Sha256: 31f1f81c17bfe5f83468486b787f467dd6eeb870f7fd6797b488d6c247db6f74

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

class AddConstraintsToMostRecentForBaconTransitions < ActiveRecord::Migration
  disable_ddl_transaction!

  def up
    add_index :bacon_transitions,
              %i[bacon_id most_recent],
              unique: true,
              name: "index_bacon_transitions_parent_most_recent",
              algorithm: :concurrently
  end

  def down
    remove_index :bacon_transitions, name: "index_bacon_transitions_parent_most_recent"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
statesman-5.2.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-5.1.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-5.0.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.1.4 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.1.3 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.1.2 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.1.1 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.1.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-4.0.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-3.5.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-3.4.1 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-3.4.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb
statesman-3.3.0 spec/fixtures/add_constraints_to_most_recent_for_bacon_transitions_without_partial_index.rb