summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorVlad <vlad.bilanchuk@teamvoy.com>2017-09-22 19:20:44 +0300
committerSean McGivern <sean@gitlab.com>2017-10-13 11:41:49 +0100
commit945e0684afc3c22ac658dbb68005cb2ebf5ac51c (patch)
tree90cb7fdd46b13735002d0ecd4e8ae5d75c94201d /db
parent5843a43c16e007193f5e26522d1e7368a0bdb2d7 (diff)
downloadgitlab-ce-945e0684afc3c22ac658dbb68005cb2ebf5ac51c.tar.gz
added date parameter for time trackinggitlab-ee-1312-time-spent-at
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170909150936_add_spent_at_to_timelogs.rb11
-rw-r--r--db/schema.rb1
2 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170909150936_add_spent_at_to_timelogs.rb b/db/migrate/20170909150936_add_spent_at_to_timelogs.rb
new file mode 100644
index 00000000000..ffff719c289
--- /dev/null
+++ b/db/migrate/20170909150936_add_spent_at_to_timelogs.rb
@@ -0,0 +1,11 @@
+class AddSpentAtToTimelogs < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def up
+ add_column :timelogs, :spent_at, :datetime_with_timezone
+ end
+
+ def down
+ remove_column :timelogs, :spent_at
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index aac37b6b455..8aadcfeb7d1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1550,6 +1550,7 @@ ActiveRecord::Schema.define(version: 20171006091000) do
t.datetime "updated_at", null: false
t.integer "issue_id"
t.integer "merge_request_id"
+ t.datetime_with_timezone "spent_at"
end
add_index "timelogs", ["issue_id"], name: "index_timelogs_on_issue_id", using: :btree