Sha256: b674ede8d810f01190c29a0600b1f67ddef6a494527684d7c6eed50a48649206

Contents?: true

Size: 608 Bytes

Versions: 103

Compression:

Stored size: 608 Bytes

Contents

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

  def up
    add_index :import_request_transitions, [:import_request_id, :most_recent], unique: true, where: "most_recent", name: "index_import_request_transitions_parent_most_recent" #, algorithm: :concurrently
    change_column_null :import_request_transitions, :most_recent, false
  end

  def down
    remove_index :import_request_transitions, name: "index_import_request_transitions_parent_most_recent"
    change_column_null :import_request_transitions, :most_recent, true
  end
end

Version data entries

103 entries across 103 versions & 18 rubygems

Version Path
enju_biblio-0.4.0.beta.2 db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_library-0.4.0.beta.3 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_circulation-0.3.6 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_circulation-0.4.0.beta.2 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_library-0.4.0.beta.2 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_nii-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_leaf-2.0.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_ndl-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_circulation-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_manifestation_viewer-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_event-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_subject-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_biblio-0.4.0.beta.1 db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_library-0.4.0.beta.1 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_circulation-0.3.5 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_biblio-0.3.5 db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_library-0.3.5 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_circulation-0.3.4 spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_biblio-0.3.4 db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb
enju_biblio-0.3.3 db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb