Sha256: 13e4b26749996f47163cf98fdd5f2fd6f33d6351d7fa52f2e31a672e95316909

Contents?: true

Size: 661 Bytes

Versions: 5

Compression:

Stored size: 661 Bytes

Contents

# frozen_string_literal: true

class CreateSolidErrorsTables < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :solid_errors do |t|
      t.text :exception_class, null: false
      t.text :message, null: false
      t.text :severity, null: false
      t.text :source
      t.datetime :resolved_at, index: true
      t.string :fingerprint, null: false, limit: 64, index: { unique: true }

      t.timestamps
    end

    create_table :solid_errors_occurrences do |t|
      t.belongs_to :error, null: false, foreign_key: { to_table: :solid_errors }
      t.text :backtrace
      t.json :context

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solid_errors-0.5.0 lib/generators/solid_errors/install/templates/create_solid_errors_tables.rb.erb
solid_errors-0.4.3 lib/generators/solid_errors/install/templates/create_solid_errors_tables.rb.erb
solid_errors-0.4.2 lib/generators/solid_errors/install/templates/create_solid_errors_tables.rb.erb
solid_errors-0.4.1 lib/generators/solid_errors/install/templates/create_solid_errors_tables.rb.erb
solid_errors-0.4.0 lib/generators/solid_errors/install/templates/create_solid_errors_tables.rb.erb