Sha256: e042d2dcd2433c8f32d712a2ffa0c32262c0eec65b4c9cd830a371732d8c7cf8
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
class AddConstraintsToMostRecentForEventImportFileTransitions < ActiveRecord::Migration[5.2] disable_ddl_transaction! def up add_index :event_import_file_transitions, [:event_import_file_id, :most_recent], unique: true, where: "most_recent", name: "index_event_import_file_transitions_parent_most_recent" #, algorithm: :concurrently change_column_null :event_import_file_transitions, :most_recent, false end def down remove_index :event_import_file_transitions, name: "index_event_import_file_transitions_parent_most_recent" change_column_null :event_import_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/20180107164558_add_constraints_to_most_recent_for_event_import_file_transitions.rb |