summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-09-07 15:56:00 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-09-07 15:56:00 +0000
commitf2421b2b97d81ef7631f1baefb4ba4401c8a04dc (patch)
tree4cc7610789043fb53458490929c619261f43e9c4 /db
parent780dd6c6af0fe73026c88ef06fc277901bbef573 (diff)
parent26264625cbc2692bc113c1e701cb15eecbd010d2 (diff)
downloadgitlab-ce-f2421b2b97d81ef7631f1baefb4ba4401c8a04dc.tar.gz
Merge branch '35012-navigation-add-option-to-change-navigation-color-palette' into 'master'
Add option to change navigation color palette Closes #35012 See merge request !13619
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170816234252_add_theme_id_to_users.rb10
-rw-r--r--db/schema.rb1
2 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20170816234252_add_theme_id_to_users.rb b/db/migrate/20170816234252_add_theme_id_to_users.rb
new file mode 100644
index 00000000000..5043f9ec591
--- /dev/null
+++ b/db/migrate/20170816234252_add_theme_id_to_users.rb
@@ -0,0 +1,10 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddThemeIdToUsers < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def change
+ add_column :users, :theme_id, :integer, limit: 2
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 04bdde8811b..86c1dda537e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1596,6 +1596,7 @@ ActiveRecord::Schema.define(version: 20170905112933) do
t.boolean "notified_of_own_activity"
t.string "preferred_language"
t.string "rss_token"
+ t.integer "theme_id", limit: 2
end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree