Class: CreateHipaapotamusActions

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/generators/hipaapotamus/templates/create_hipaapotamus_actions.rb', line 2

def change
  create_table :hipaapotamus_actions do |t|
    t.integer :agent_id
    t.string :agent_type, null: false

    t.integer :protected_id
    t.string :protected_type, null: false
    t.text :serialized_protected_attributes, null: false

    t.integer :action_type, null: false

    t.boolean :is_transactional, null: false

    t.datetime :performed_at, null: false
    t.datetime :created_at, null: false
  end
end