summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-08-16 19:03:48 -0500
committerRuben Davila <rdavila84@gmail.com>2017-09-06 12:54:08 -0500
commit8d1321d66977dc50577cf23f7cb0a6e9caa8283e (patch)
tree2f0c168a0291ea23ac78d903b3b40eb09cccba64 /db
parent86cbf60cbb77d15ac01d86cec2e387974426f898 (diff)
downloadgitlab-ce-8d1321d66977dc50577cf23f7cb0a6e9caa8283e.tar.gz
Add theme_id column to users table
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 1c1a5e63bc4..937075c8a3c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1614,6 +1614,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