From 8d1321d66977dc50577cf23f7cb0a6e9caa8283e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D=C3=A1vila?= Date: Wed, 16 Aug 2017 19:03:48 -0500 Subject: Add theme_id column to users table --- db/migrate/20170816234252_add_theme_id_to_users.rb | 10 ++++++++++ db/schema.rb | 1 + 2 files changed, 11 insertions(+) create mode 100644 db/migrate/20170816234252_add_theme_id_to_users.rb (limited to 'db') 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 -- cgit v1.2.1