lib/generators/templates/create_table.rb in exception_handler-0.2.7 vs lib/generators/templates/create_table.rb in exception_handler-0.3.0
- old
+ new
@@ -1,14 +1,16 @@
class CreateErrors < ActiveRecord::Migration
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.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
end
\ No newline at end of file