Class: CreateDunlopLastAttributeChanges

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/dunlop/install/workflow/templates/migrations/create_dunlop_last_attribute_changes.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/dunlop/install/workflow/templates/migrations/create_dunlop_last_attribute_changes.rb', line 2

def change
  create_table :dunlop_last_attribute_changes do |t|
    t.integer    :target_id
    t.string     :target_type
    t.datetime   :changed_at
    t.string     :attribute_name

    t.timestamps null: false
  end
end