aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/063_add_admin_users.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/063_add_admin_users.rb b/db/migrate/063_add_admin_users.rb
new file mode 100644
index 000000000..9daa64a35
--- /dev/null
+++ b/db/migrate/063_add_admin_users.rb
@@ -0,0 +1,9 @@
+class AddAdminUsers < ActiveRecord::Migration
+ def self.up
+ add_column :users, :admin_level, :string, :null => false, :default => 'none'
+ end
+
+ def self.down
+ remove_column :users, :admin_level
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 3511724da..99ced4c04 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 62) do
+ActiveRecord::Schema.define(:version => 63) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -176,6 +176,7 @@ ActiveRecord::Schema.define(:version => 62) do
t.boolean "email_confirmed", :default => false, :null => false
t.text "url_name", :null => false
t.datetime "last_daily_track_email", :default => '2000-01-01 00:00:00'
+ t.string "admin_level", :default => "none", :null => false
end
add_index "users", ["url_name"], :name => "index_users_on_url_name", :unique => true