Sha256: 14b900e83ef0f16593fb6a7ad010beee64466d65c226cf724591b94a96fec23e

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

class AddConstraintsToMostRecentForEventExportFileTransitions < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def up
    add_index :event_export_file_transitions, [:event_export_file_id, :most_recent], unique: true, where: "most_recent", name: "index_event_export_file_transitions_parent_most_recent" #, algorithm: :concurrently
    change_column_null :event_export_file_transitions, :most_recent, false
  end

  def down
    remove_index :event_export_file_transitions, name: "index_event_export_file_transitions_parent_most_recent"
    change_column_null :event_export_file_transitions, :most_recent, true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_event-0.4.0.rc.1 db/migrate/20180107164617_add_constraints_to_most_recent_for_event_export_file_transitions.rb