Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-04 21:26:11 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-08 20:14:29 +0300
commit2989192d1aa8051aa09164cd097418bd3063d4ad (patch)
treee277adf2535ac10ed338481ef092731ef84b27e1 /db/migrate/20170204172458_add_name_to_route.rb
parentbbb7fbcd02c9d9a8a6d6ca44d7ce668b80962c21 (diff)
Store group and project full name and full path in routes table
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate/20170204172458_add_name_to_route.rb')
-rw-r--r--db/migrate/20170204172458_add_name_to_route.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170204172458_add_name_to_route.rb b/db/migrate/20170204172458_add_name_to_route.rb
new file mode 100644
index 00000000000..38ed1ad9039
--- /dev/null
+++ b/db/migrate/20170204172458_add_name_to_route.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 AddNameToRoute < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ add_column :routes, :name, :string
+ end
+end