Created role model

This commit is contained in:
2013-01-28 00:18:36 -05:00
parent d9e9814823
commit b3177c8889
6 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class CreateRoles < ActiveRecord::Migration
def change
create_table :roles do |t|
t.string :name
t.timestamps
end
end
end

View File

@@ -0,0 +1,5 @@
class AddRoleIdToUser < ActiveRecord::Migration
def change
add_column :users, :role_id, :integer
end
end