Sha256: 27889534604b8c5d2f0f8861cbda46db221f27a422dfccbaff608758b5117b38

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

# Adds supplementary column to error fingerprint
class AddCauseToErrorFingerprints < NdrError.migration_class
  def change
    add_column :error_fingerprints, :causal_error_fingerprintid, :string

    add_foreign_key :error_fingerprints, :error_fingerprints,
                    column:      :causal_error_fingerprintid,
                    primary_key: :error_fingerprintid

    add_index :error_fingerprints, :causal_error_fingerprintid
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ndr_error-2.4.1 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.4.0 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.3.2 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.3.1 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.3.0 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.2.0 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.1.0 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.0.3 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.0.2 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.0.1 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb
ndr_error-2.0.0 db/migrate/20180203174345_add_cause_to_error_fingerprints.rb