diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-12 11:17:42 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 12:10:26 -0200 |
commit | 41d8f5649e3c8a1e37be4608fd03153005c3fa58 (patch) | |
tree | 1a76ece3e4bab3327539f4417d911d3656444212 /db/schema.rb | |
parent | 040ae7e3e0c6f4d97fe6366bff9b05831283db7e (diff) | |
download | gitlab-ce-41d8f5649e3c8a1e37be4608fd03153005c3fa58.tar.gz |
Add task model
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb index af5bac63b42..183227a91ca 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -824,6 +824,24 @@ ActiveRecord::Schema.define(version: 20160217100506) do add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree + create_table "tasks", force: :cascade do |t| + t.integer "user_id", null: false + t.integer "project_id", null: false + t.integer "target_id", null: false + t.string "target_type", null: false + t.integer "author_id" + t.integer "action", null: false + t.string "state", null: false + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "tasks", ["author_id"], name: "index_tasks_on_author_id", using: :btree + add_index "tasks", ["project_id"], name: "index_tasks_on_project_id", using: :btree + add_index "tasks", ["state"], name: "index_tasks_on_state", using: :btree + add_index "tasks", ["target_type", "target_id"], name: "index_tasks_on_target_type_and_target_id", using: :btree + add_index "tasks", ["user_id"], name: "index_tasks_on_user_id", using: :btree + create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false |