Sha256: 6aea4ab0f95b806e1f7b8932a6c72684f6a325d7e93cfd9215a8004f3e959101

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 Bytes

Contents

class Create<%= table_name.to_s.gsub("_","").titleize %> < ActiveRecord::Migration
  def change
    create_table :<%= table_name %> do |t|
      t.references  :usable, polymorphic: true
      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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exception_handler-0.5.1 lib/generators/templates/migration.rb.erb
exception_handler-0.4.7 lib/generators/templates/migration.rb.erb
exception_handler-0.4.6 lib/generators/templates/migration.rb.erb
exception_handler-0.4.1 lib/generators/templates/migration.rb.erb