Sha256: 8889d037de52799df5af9d5310f7ad384321293b3abbe3f3e6dffb02c1327226

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

class CreateSolidErrorsTables < ActiveRecord::Migration[7.1]
  def change
    create_table :errors do |t|
      t.string :exception_class, null: false
      t.string :message, null: false
      t.string :severity, null: false
      t.string :source
      t.datetime :resolved_at, index: true

      t.timestamps

      t.index [:exception_class, :message, :severity, :source], unique: true
    end

    create_table :occurrences do |t|
      t.belongs_to :error, null: false, foreign_key: true
      t.text :backtrace
      t.json :context

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solid_errors-0.2.4 db/migrate/20240112191645_create_solid_errors_tables.rb
solid_errors-0.2.3 db/migrate/20240112191645_create_solid_errors_tables.rb
solid_errors-0.2.2 db/migrate/20240112191645_create_solid_errors_tables.rb