diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-03 21:30:13 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-03 21:30:13 -0700 |
| commit | 2085d8aecbfb095bbf9989a56dd74dc89f1d2a3e (patch) | |
| tree | 45ab2811e6eb29364dfb526e21727735bbd7e11b /db/schema.rb | |
| parent | bab5e66e261774700eb3ad515eb929fc85991a69 (diff) | |
add association from agents to events.
Diffstat (limited to 'db/schema.rb')
| -rw-r--r-- | db/schema.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 1c756d5..1011d84 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,12 +11,18 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150204033540) do +ActiveRecord::Schema.define(version: 20150204042612) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" enable_extension "uuid-ossp" + create_table "agents", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| + t.string "hostname" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "dispositions", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| t.string "fingerprint" t.integer "state" @@ -29,6 +35,9 @@ ActiveRecord::Schema.define(version: 20150204033540) do t.json "data" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.integer "agent_id" end + add_index "events", ["agent_id"], name: "index_events_on_agent_id", using: :btree + end |
