Class: CreateErrors

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/create_table.rb,
lib/generators/templates/create_errors.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/templates/create_table.rb', line 2

def change
  create_table :errors do |t|
    t.text :class_name
    t.text :message
    t.text :trace
    t.text :target_url
    t.text :referer_url
    t.text :params
    t.text :user_agent
    t.timestamps
  end
end