mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue