Adding admin role and devise views
This commit is contained in:
5
db/migrate/20120904024426_add_admin_to_users.rb
Normal file
5
db/migrate/20120904024426_add_admin_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddAdminToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :admin, :boolean
|
||||
end
|
||||
end
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120902105919) do
|
||||
ActiveRecord::Schema.define(:version => 20120904024426) do
|
||||
|
||||
create_table "door_logs", :force => true do |t|
|
||||
t.string "key"
|
||||
@@ -36,6 +36,7 @@ ActiveRecord::Schema.define(:version => 20120902105919) do
|
||||
t.datetime "last_sign_in_at"
|
||||
t.string "current_sign_in_ip"
|
||||
t.string "last_sign_in_ip"
|
||||
t.boolean "admin"
|
||||
end
|
||||
|
||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
||||
|
||||
Reference in New Issue
Block a user