Class: CreateMeritActions

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

Class Method Summary (collapse)

Class Method Details

+ (Object) down



15
16
17
# File 'lib/generators/active_record/templates/create_merit_actions.rb', line 15

def self.down
  drop_table :merit_actions
end

+ (Object) up



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

def self.up
  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.boolean :processed, default: false
    t.timestamps
  end
end