Add CN support to certificates

This commit is contained in:
Martin Lensment 2015-05-21 17:06:21 +03:00
parent e2809cc285
commit 9ad66c0999
12 changed files with 144 additions and 133 deletions

View file

@ -0,0 +1,7 @@
class AddFieldsForCertificate < ActiveRecord::Migration
def change
add_column :certificates, :common_name, :string
add_column :certificates, :md5, :string
add_column :certificates, :interface, :string
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150520164507) do
ActiveRecord::Schema.define(version: 20150521120145) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -147,6 +147,9 @@ ActiveRecord::Schema.define(version: 20150520164507) do
t.string "updator_str"
t.datetime "created_at"
t.datetime "updated_at"
t.string "common_name"
t.string "md5"
t.string "interface"
end
add_index "certificates", ["api_user_id"], name: "index_certificates_on_api_user_id", using: :btree