summaryrefslogtreecommitdiff
path: root/db/migrate/20140729134820_create_labels.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 17:10:15 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-29 17:10:15 +0300
commit03654a6abf47c88b8b980a6707874ff78080d2fe (patch)
treec5ba2dba7f0685dd6c5e656a50f70400a746b23e /db/migrate/20140729134820_create_labels.rb
parent535feb08ce90352c89799df5e3e70a10e53ee10d (diff)
downloadgitlab-ce-03654a6abf47c88b8b980a6707874ff78080d2fe.tar.gz
Label and LabelLink models for implementing own GitLab labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20140729134820_create_labels.rb')
-rw-r--r--db/migrate/20140729134820_create_labels.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20140729134820_create_labels.rb b/db/migrate/20140729134820_create_labels.rb
new file mode 100644
index 00000000000..3a4b6a152dc
--- /dev/null
+++ b/db/migrate/20140729134820_create_labels.rb
@@ -0,0 +1,11 @@
+class CreateLabels < ActiveRecord::Migration
+ def change
+ create_table :labels do |t|
+ t.string :title
+ t.string :color
+ t.integer :project_id
+
+ t.timestamps
+ end
+ end
+end