Class: CreateMeritActions

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) change



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

def change
  create_table :merit_actions do |t|
    t.integer :user_id
    t.string  :action_method
    t.integer :action_value
    t.boolean :had_errors, default: false
    t.string  :target_model
    t.integer :target_id
    t.text    :target_data
    t.boolean :processed, default: false
    t.timestamps
  end
end