mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Readme updates + tests for cert
This commit is contained in:
parent
5319db16b4
commit
a6baf60e59
9 changed files with 154 additions and 2 deletions
|
@ -4,10 +4,24 @@ class CreateCertificates < ActiveRecord::Migration
|
|||
t.integer :api_user_id
|
||||
t.text :csr
|
||||
t.text :crt
|
||||
t.string :creator_str
|
||||
t.string :updator_str
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
create_table :log_certificates 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
|
||||
|
||||
ApiUser.all.each do |x|
|
||||
x.certificates << Certificate.new(crt: x.crt, csr: x.csr)
|
||||
end
|
||||
|
|
14
db/schema.rb
14
db/schema.rb
|
@ -57,6 +57,8 @@ ActiveRecord::Schema.define(version: 20150223104842) do
|
|||
t.integer "api_user_id"
|
||||
t.text "csr"
|
||||
t.text "crt"
|
||||
t.string "creator_str"
|
||||
t.string "updator_str"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
@ -283,6 +285,18 @@ ActiveRecord::Schema.define(version: 20150223104842) do
|
|||
add_index "log_api_users", ["item_type", "item_id"], name: "index_log_api_users_on_item_type_and_item_id", using: :btree
|
||||
add_index "log_api_users", ["whodunnit"], name: "index_log_api_users_on_whodunnit", using: :btree
|
||||
|
||||
create_table "log_certificates", 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_contact_disclosures", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.integer "item_id", null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue