Sha256: 883e4c2a3d25c9f1a56395e8035db9df74fb8cd7eb0d40676b6ed2ef223b769d

Contents?: true

Size: 623 Bytes

Versions: 95

Compression:

Stored size: 623 Bytes

Contents

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

  def up
    add_index :user_import_file_transitions, [:user_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_user_import_file_transitions_parent_most_recent" #, algorithm: :concurrently
    change_column_null :user_import_file_transitions, :most_recent, false
  end

  def down
    remove_index :user_import_file_transitions, name: "index_user_import_file_transitions_parent_most_recent"
    change_column_null :user_import_file_transitions, :most_recent, true
  end
end

Version data entries

95 entries across 95 versions & 14 rubygems

Version Path
enju_library-0.3.6 db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_biblio-0.3.7 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_biblio-0.3.6 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_seed-0.4.0.rc.1 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_library-0.4.0.beta.4 db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_leaf-2.0.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_circulation-0.4.0.beta.4 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_manifestation_viewer-0.4.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_circulation-0.4.0.beta.3 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_event-0.4.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_seed-0.4.0.beta.3 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_biblio-0.4.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_library-0.4.0.beta.3 db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_message-0.4.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_circulation-0.4.0.beta.2 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_library-0.4.0.beta.2 db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_nii-0.4.0.beta.1 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_leaf-2.0.0.beta.1 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_ndl-0.4.0.beta.1 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb
enju_circulation-0.4.0.beta.1 spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb