diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-23 16:23:13 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-23 16:23:13 +0300 |
commit | 4646d453b3211e29ec5afba2568766018caf32e0 (patch) | |
tree | 0775b128f5abd774c97791dab5c462e8bc52b47c /db | |
parent | 1a45de3d4559a2f92e099a43490e9c50fe4bc86e (diff) | |
parent | 3789cfe056c1d8a5fb91267cc2b1dd0f9f5902a9 (diff) |
Merge branch 'milestone_start_date' into 'master'
Add a starting date to milestones
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23704
See merge request !7484
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161115173905_add_start_date_to_milestones.rb | 12 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20161115173905_add_start_date_to_milestones.rb b/db/migrate/20161115173905_add_start_date_to_milestones.rb new file mode 100644 index 00000000000..413733b8db7 --- /dev/null +++ b/db/migrate/20161115173905_add_start_date_to_milestones.rb @@ -0,0 +1,12 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddStartDateToMilestones < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :milestones, :start_date, :date + end +end diff --git a/db/schema.rb b/db/schema.rb index 6b28e80f01d..b3c49b52597 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -720,6 +720,7 @@ ActiveRecord::Schema.define(version: 20161118183841) do t.integer "iid" t.text "title_html" t.text "description_html" + t.date "start_date" end add_index "milestones", ["description"], name: "index_milestones_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"} |