Created role model

This commit is contained in:
ricky committed 2013-01-28 00:18:36 -05:00
1 parent d9e9814823
commit b3177c8889
6 files changed
+39 -1

No files matched your search

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