diff options
author | Andrew Tomaka <atomaka@gmail.com> | 2015-12-03 03:02:15 +0300 |
---|---|---|
committer | Andrew Tomaka <atomaka@gmail.com> | 2015-12-05 19:32:08 +0300 |
commit | 1c53dc28b505f2853750ed4ea8b954385c5bf598 (patch) | |
tree | 2906c8f55dd83e8aec787d8ff2d01f8dfedc573d /db | |
parent | d2f9a9012d55a7dc9c8e9e61b946c52836a1d8f1 (diff) |
Notify user if they cannot create projects
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151203162133_add_hide_project_limit_to_users.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20151203162133_add_hide_project_limit_to_users.rb b/db/migrate/20151203162133_add_hide_project_limit_to_users.rb new file mode 100644 index 00000000000..6ffadfa1894 --- /dev/null +++ b/db/migrate/20151203162133_add_hide_project_limit_to_users.rb @@ -0,0 +1,5 @@ +class AddHideProjectLimitToUsers < ActiveRecord::Migration + def change + add_column :users, :hide_project_limit, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index fbcb711e569..fb59e187625 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: 20151118162244) do +ActiveRecord::Schema.define(version: 20151203162133) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -814,6 +814,7 @@ ActiveRecord::Schema.define(version: 20151118162244) do t.integer "project_view", default: 0 t.integer "consumed_timestep" t.integer "layout", default: 0 + t.boolean "hide_project_limit", default: false end add_index "users", ["admin"], name: "index_users_on_admin", using: :btree |