feature/share-libs
rb 17 lines 458 Bytes
Raw
1 class CreateMeritActions < ActiveRecord::Migration[6.1]
2 def change
3 create_table :merit_actions do |t|
4 t.integer :user_id
5 t.string :action_method
6 t.integer :action_value
7 t.boolean :had_errors, default: false
8 t.string :target_model
9 t.integer :target_id
10 t.text :target_data
11 t.boolean :processed, default: false
12 t.timestamps null: false
13 end
14
15 add_index :merit_actions, :processed
16 end
17 end