mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Add ActionVersion
This commit is contained in:
parent
f5ab7814e3
commit
f4fc975440
4 changed files with 77 additions and 0 deletions
16
db/migrate/20190620084334_create_log_actions.rb
Normal file
16
db/migrate/20190620084334_create_log_actions.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
class CreateLogActions < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :log_actions do |t|
|
||||
t.string :item_type, null: false
|
||||
t.integer :item_id, null: false
|
||||
t.string :event, null: false
|
||||
t.string :whodunnit
|
||||
t.jsonb :object
|
||||
t.jsonb :object_changes
|
||||
t.datetime :created_at
|
||||
t.string :session
|
||||
t.jsonb :children
|
||||
t.string :uuid
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue