mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add logging to white ip
This commit is contained in:
parent
8e37355e13
commit
76ea1389e6
7 changed files with 73 additions and 27 deletions
18
db/migrate/20150519140853_create_white_ip_log.rb
Normal file
18
db/migrate/20150519140853_create_white_ip_log.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
class CreateWhiteIpLog < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :log_white_ips do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
t.string "event", null: false
|
||||
t.string "whodunnit"
|
||||
t.json "object"
|
||||
t.json "object_changes"
|
||||
t.datetime "created_at"
|
||||
t.string "session"
|
||||
t.json "children"
|
||||
end
|
||||
|
||||
add_column :white_ips, :creator_str, :string
|
||||
add_column :white_ips, :updator_str, :string
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue