mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Merge branch 'master' of github.com:domify/registry
This commit is contained in:
commit
2863cd6749
36 changed files with 534 additions and 92 deletions
11
db/migrate/20150519115050_create_white_ip.rb
Normal file
11
db/migrate/20150519115050_create_white_ip.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateWhiteIp < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :white_ips do |t|
|
||||
t.integer :registrar_id
|
||||
t.string :ipv4
|
||||
t.string :ipv6
|
||||
t.string :interface
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
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
|
23
db/schema.rb
23
db/schema.rb
|
@ -797,6 +797,18 @@ ActiveRecord::Schema.define(version: 20150519144118) do
|
|||
add_index "log_users", ["item_type", "item_id"], name: "index_log_users_on_item_type_and_item_id", using: :btree
|
||||
add_index "log_users", ["whodunnit"], name: "index_log_users_on_whodunnit", using: :btree
|
||||
|
||||
create_table "log_white_ips", force: :cascade 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
|
||||
|
||||
create_table "log_zonefile_settings", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
|
@ -954,6 +966,17 @@ ActiveRecord::Schema.define(version: 20150519144118) do
|
|||
t.text "depricated_table_but_somehow_paper_trail_tests_fails_without_it"
|
||||
end
|
||||
|
||||
create_table "white_ips", force: :cascade do |t|
|
||||
t.integer "registrar_id"
|
||||
t.string "ipv4"
|
||||
t.string "ipv6"
|
||||
t.string "interface"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
end
|
||||
|
||||
create_table "whois_records", force: :cascade do |t|
|
||||
t.integer "domain_id"
|
||||
t.string "name"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue