aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-09-19 16:51:21 +0100
committerLouise Crow <louise.crow@gmail.com>2013-12-04 09:32:38 +0000
commit881d393aff2598c4a0c4a23fee85ebe9fe478b03 (patch)
treec95b71e8e609e878006bd495f06bb77f469c7f59 /db
parent5b709d61c1c897f10d9900018fecca4c10731673 (diff)
Add a can_make_batch_requests flag to user model
Make it updatable via the user admin page.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130919151140_add_can_make_batch_requests_to_user.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20130919151140_add_can_make_batch_requests_to_user.rb b/db/migrate/20130919151140_add_can_make_batch_requests_to_user.rb
new file mode 100644
index 000000000..cc9d8e76f
--- /dev/null
+++ b/db/migrate/20130919151140_add_can_make_batch_requests_to_user.rb
@@ -0,0 +1,5 @@
+class AddCanMakeBatchRequestsToUser < ActiveRecord::Migration
+ def change
+ add_column :users, :can_make_batch_requests, :boolean, :default => false, :null => false
+ end
+end