| Class | OpenWFE::Extras::ProcessErrorTables |
| In: |
lib/openwfe/extras/expool/dberrorjournal.rb
|
| Parent: | ActiveRecord::Migration |
A migration for creating/dropping the "process errors" table, the content of this table makes up for an error journal.
There is one record per process error, the log journal can be easily rebuilt by doing find_all_by_wfid().
# File lib/openwfe/extras/expool/dberrorjournal.rb, line 73
73: def self.down
74:
75: drop_table :process_errors
76: end
# File lib/openwfe/extras/expool/dberrorjournal.rb, line 61
61: def self.up
62:
63: create_table :process_errors do |t|
64:
65: t.column :wfid, :string, :null => false
66: t.column :svalue, :text, :null => false
67: # 'value' could be reserved, using 'svalue' instead
68: # It stands for 'serialized value'.
69: end
70: add_index :process_errors, :wfid
71: end