Class: CreateStateMachinesTransactions

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/templates/create_state_machines_transactions.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  create_table :state_machines_transactions do |t|
    t.string :object_type
    t.integer :object_id
    t.string :state_field
    t.string :event
    t.string :from_state
    t.string :to_state
    t.string :status

    t.timestamps
  end
end