Skip to content

Commit

Permalink
Reflect the reality of the database
Browse files Browse the repository at this point in the history
**Why**:
The db/schema.rb and migrations got out of sync.

**How**:
Update the db/schema.rb to reflect what the migrations
build.
  • Loading branch information
jgsmith-usds committed Nov 27, 2018
1 parent 17a4704 commit b4c8efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/services/ocsp_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def build_request
end

def ocsp_url_for_subject
authority.ocsp_url.presence || begin
authority.ocsp_http_url.presence || begin
uri = subject.ocsp_http_url
authority.ocsp_url = uri
authority.ocsp_http_url = uri
authority.save!
uri
end
Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
t.datetime "valid_not_after", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "ocsp_url"
t.string "ocsp_http_url"
t.index ["key"], name: "index_certificate_authorities_on_key", unique: true
end

Expand Down

0 comments on commit b4c8efc

Please sign in to comment.