From e2c5d08e7e4482bd13b8e2e4f77db73dc757d6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20G=C3=B6bel?= Date: Mon, 5 Oct 2015 17:22:47 +0200 Subject: added user preference to change layout width --- db/migrate/20151005150751_add_layout_option_for_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20151005150751_add_layout_option_for_users.rb (limited to 'db') diff --git a/db/migrate/20151005150751_add_layout_option_for_users.rb b/db/migrate/20151005150751_add_layout_option_for_users.rb new file mode 100644 index 00000000000..5ead0c04d5a --- /dev/null +++ b/db/migrate/20151005150751_add_layout_option_for_users.rb @@ -0,0 +1,5 @@ +class AddLayoutOptionForUsers < ActiveRecord::Migration + def change + add_column :users, :layout, :integer, :default => 0 + end +end \ No newline at end of file diff --git a/db/schema.rb b/db/schema.rb index 72609da93f1..186dfec8861 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150930095736) do +ActiveRecord::Schema.define(version: 20151005150751) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -753,6 +753,7 @@ ActiveRecord::Schema.define(version: 20150930095736) do t.integer "dashboard", default: 0 t.integer "project_view", default: 0 t.integer "consumed_timestep" + t.integer "layout", default: 0 end add_index "users", ["admin"], name: "index_users_on_admin", using: :btree -- cgit v1.2.1 From 291e1fa93063a62e7a0f054135dc5bcebcdd0056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20G=C3=B6bel?= Date: Mon, 5 Oct 2015 18:09:05 +0200 Subject: improved code style and layout option naming --- db/migrate/20151005150751_add_layout_option_for_users.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') diff --git a/db/migrate/20151005150751_add_layout_option_for_users.rb b/db/migrate/20151005150751_add_layout_option_for_users.rb index 5ead0c04d5a..ead9b1f8977 100644 --- a/db/migrate/20151005150751_add_layout_option_for_users.rb +++ b/db/migrate/20151005150751_add_layout_option_for_users.rb @@ -1,5 +1,5 @@ class AddLayoutOptionForUsers < ActiveRecord::Migration def change - add_column :users, :layout, :integer, :default => 0 + add_column :users, :layout, :integer, default: 0 end end \ No newline at end of file -- cgit v1.2.1