mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
16 lines
410 B
Ruby
16 lines
410 B
Ruby
class CreateLogActions < ActiveRecord::Migration[6.0]
|
|
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
|