Class: CreateDunlopLogEntries
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDunlopLogEntries
- Defined in:
- lib/generators/dunlop/install/base/templates/migrations/create_dunlop_log_entries.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/dunlop/install/base/templates/migrations/create_dunlop_log_entries.rb', line 2 def change create_table :dunlop_log_entries do |t| t.integer :loggable_id t.string :loggable_type t.text :body t.text :backtrace t.datetime :created_at t.datetime :updated_at end add_index :dunlop_log_entries, [:loggable_id, :loggable_type] end |