Class: CreateErrors

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :errors do |t|
    t.string  :usable_type
    t.integer :usable_id
    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