Sha256: 4106f124cc5d1f3a669c0b9eb2f81ad43f75a51a786000ac94335f9d8d747a1f

Contents?: true

Size: 632 Bytes

Versions: 15

Compression:

Stored size: 632 Bytes

Contents

class AddConstraintsToMostRecentForAgentImportFileTransitions < ActiveRecord::Migration[4.2]
  disable_ddl_transaction!

  def up
    add_index :agent_import_file_transitions, [:agent_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_agent_import_file_transitions_parent_most_recent" # , algorithm: :concurrently
    change_column_null :agent_import_file_transitions, :most_recent, false
  end

  def down
    remove_index :agent_import_file_transitions, name: "index_agent_import_file_transitions_parent_most_recent"
    change_column_null :agent_import_file_transitions, :most_recent, true
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
enju_message-0.4.0.beta.2 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_message-0.4.0.beta.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.3 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.2 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_message-0.3.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_inventory-0.3.0 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.0 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_message-0.3.0 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.0.rc.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_message-0.3.0.rc.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_inventory-0.3.0.beta.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_news-0.3.0.beta.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_circulation-0.3.0.beta.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb
enju_message-0.3.0.beta.1 spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb