summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorTap <visibletrap@gmail.com>2016-02-17 21:52:12 +0800
committerTap <visibletrap@gmail.com>2016-02-17 21:52:12 +0800
commit2e81b1558bb02da5eacd24484a665a48e8a1cece (patch)
tree9843854846e2616075d7dbcaf0ca1527cb7de9a4 /db
parent943bed68bc42d02246ddea63a25432d3aba709e7 (diff)
downloadgitlab-ce-2e81b1558bb02da5eacd24484a665a48e8a1cece.tar.gz
Label description and Label row
- Add label description - Show label row when filtering issues or merge requests by label
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160217100506_add_description_to_label.rb5
-rw-r--r--db/schema.rb5
2 files changed, 8 insertions, 2 deletions
diff --git a/db/migrate/20160217100506_add_description_to_label.rb b/db/migrate/20160217100506_add_description_to_label.rb
new file mode 100644
index 00000000000..eed6d1f236a
--- /dev/null
+++ b/db/migrate/20160217100506_add_description_to_label.rb
@@ -0,0 +1,5 @@
+class AddDescriptionToLabel < ActiveRecord::Migration
+ def change
+ add_column :labels, :description, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 689a8c3ecc5..0976058bd16 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20160209130428) do
+ActiveRecord::Schema.define(version: 20160217100506) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -442,7 +442,8 @@ ActiveRecord::Schema.define(version: 20160209130428) do
t.integer "project_id"
t.datetime "created_at"
t.datetime "updated_at"
- t.boolean "template", default: false
+ t.boolean "template", default: false
+ t.string "description"
end
add_index "labels", ["project_id"], name: "index_labels_on_project_id", using: :btree