You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3KB

  1. # This file is auto-generated from the current state of the database. Instead
  2. # of editing this file, please use the migrations feature of Active Record to
  3. # incrementally modify your database, and then regenerate this schema definition.
  4. #
  5. # Note that this schema.rb definition is the authoritative source for your
  6. # database schema. If you need to create the application database on another
  7. # system, you should be using db:schema:load, not running all the migrations
  8. # from scratch. The latter is a flawed and unsustainable approach (the more migrations
  9. # you'll amass, the slower it'll run and the greater likelihood for issues).
  10. #
  11. # It's strongly recommended that you check this file into your version control system.
  12. ActiveRecord::Schema.define(version: 2019_12_01_192510) do
  13. # These are extensions that must be enabled in order to support this database
  14. enable_extension "pgcrypto"
  15. enable_extension "plpgsql"
  16. create_table "analyses", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
  17. t.string "service", null: false
  18. t.string "host", null: false
  19. t.boolean "pending", default: true, null: false
  20. t.jsonb "result"
  21. t.datetime "created_at", null: false
  22. t.datetime "updated_at", null: false
  23. t.jsonb "args"
  24. t.index ["service", "host", "args"], name: "index_analyses_on_service_and_host_and_args", unique: true
  25. end
  26. end