mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Create blocked domains #2564
This commit is contained in:
parent
cd277c25ed
commit
d93d43e75c
13 changed files with 254 additions and 80 deletions
25
db/migrate/20150701074344_create_blocked_domains.rb
Normal file
25
db/migrate/20150701074344_create_blocked_domains.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
class CreateBlockedDomains < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :blocked_domains do |t|
|
||||
t.string :names, array: true
|
||||
t.timestamps
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
end
|
||||
|
||||
create_table "log_blocked_domains", 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
|
||||
|
||||
add_index "log_blocked_domains", ["item_type", "item_id"], name: "index_log_blocked_domains_on_item_type_and_item_id", using: :btree
|
||||
add_index "log_blocked_domains", ["whodunnit"], name: "index_log_blocked_domains_on_whodunnit", using: :btree
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue