Class: CreateAttributeChangerAttributeChanges

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :attribute_changer_attribute_changes do |t|
    t.string :obj_type
    t.integer :obj_id
    t.string :attrib
    t.string :value
    t.string :status
    
    t.timestamps
  end
end