Class: AirbrakeLocalCreateErrorLogs

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/airbrake_local/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/generators/airbrake_local/templates/migration.rb', line 2

def change
  create_table(:airbrake_local_error_logs) do |t|

    t.text    :exception
    t.text    :backtrace
    t.text    :error_class
    t.string  :environment_name
    t.text    :cgi_data
    t.text    :error_message
    t.text    :parameters
    t.text    :component
    t.text    :action
    t.text    :session_data
    t.text    :project_root, :limit=>512
    t.text    :url

    t.string  :status, :default=>"Unsolved"
    t.string  :assign_to

    t.timestamps
  end
end