summaryrefslogtreecommitdiff
blob: 83d516ca3e80aadcf1199283cf6cfce805a9e3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This file is auto-generated from the current state of the database. Instead of editing this file, 
# please use the migrations feature of Active Record to incrementally modify your database, and
# then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
# to create the application database on another system, you should be using db:schema:load, not running
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20090315105326) do

  create_table "bugs", :force => true do |t|
    t.integer  "bug_id"
    t.text     "title"
    t.integer  "revision_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "bugs", ["revision_id"], :name => "index_bugs_on_revision_id"

  create_table "glsas", :force => true do |t|
    t.string   "glsa_id"
    t.integer  "requester"
    t.integer  "submitter"
    t.integer  "bugreadymaker"
    t.string   "status"
    t.integer  "last_revision_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "glsas", ["bugreadymaker"], :name => "glsas_users_bugreadymakers"
  add_index "glsas", ["glsa_id"], :name => "index_glsas_on_glsa_id", :unique => true
  add_index "glsas", ["requester"], :name => "glsas_users_requesters"
  add_index "glsas", ["status"], :name => "index_glsas_on_status"
  add_index "glsas", ["submitter"], :name => "glsas_users_submitters"

  create_table "permissions", :force => true do |t|
    t.string   "name"
    t.string   "title"
    t.string   "description"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "permissions", ["name"], :name => "index_permissions_on_name", :unique => true

  create_table "permissions_users", :force => true do |t|
    t.integer  "user_id"
    t.integer  "permission_id"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "permissions_users", ["permission_id"], :name => "permissions_users_permissions"
  add_index "permissions_users", ["user_id", "permission_id"], :name => "index_permissions_users_on_user_id_and_permission_id"

  create_table "references", :force => true do |t|
    t.integer  "revision_id"
    t.text     "title"
    t.text     "url"
    t.string   "type"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "references", ["revision_id"], :name => "index_references_on_revision_id"

  create_table "revisions", :force => true do |t|
    t.integer  "glsa_id"
    t.integer  "revid"
    t.string   "title"
    t.string   "access"
    t.string   "product"
    t.string   "category"
    t.string   "severity"
    t.text     "synopsis"
    t.text     "background"
    t.text     "description"
    t.text     "impact"
    t.text     "workaround"
    t.text     "resolution"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "revisions", ["glsa_id"], :name => "index_revisions_on_glsa_id"
  add_index "revisions", ["revid"], :name => "index_revisions_on_revid"
  add_index "revisions", ["title"], :name => "index_revisions_on_title"

  create_table "users", :force => true do |t|
    t.string   "login"
    t.string   "name"
    t.string   "email"
    t.boolean  "disabled",    :default => false
    t.text     "preferences"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  add_index "users", ["login"], :name => "index_users_on_login", :unique => true

end