Skip to content

Commit 318188c

Browse files
committed
add role to users so we can have moderators.
1 parent 9eec8a1 commit 318188c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddRoleToUser < ActiveRecord::Migration
2+
def change
3+
add_column :users, :role, :string, default: 'user'
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended to check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(:version => 20150523214130) do
14+
ActiveRecord::Schema.define(:version => 20150703215747) do
1515

1616
add_extension "uuid-ossp"
1717
add_extension "citext"
@@ -526,6 +526,7 @@
526526
t.string "last_ip"
527527
t.string "last_ua"
528528
t.integer "team_id"
529+
t.string "role", :default => "user"
529530
end
530531

531532
add_index "users", ["linkedin_id"], :name => "index_users_on_linkedin_id", :unique => true

0 commit comments

Comments
 (0)