Merge branch 'master' into denney-new-user-form

Conflicts:
	db/schema.rb
This commit is contained in:
John N. Milner
2013-05-30 22:03:53 -04:00
27 changed files with 303 additions and 65 deletions
@@ -0,0 +1,9 @@
class AlterUserRoles < ActiveRecord::Migration
def change
rename_table :user_roles, :user_role_joins
change_table :user_role_joins do |t|
t.rename :role, :role_id
t.change :role_id, :integer
end
end
end
+8
View File
@@ -0,0 +1,8 @@
class AddRoles < ActiveRecord::Migration
def change
create_table(:roles) do |t|
t.string :role
t.timestamps
end
end
end
+5
View File
@@ -0,0 +1,5 @@
class AlterUser < ActiveRecord::Migration
def change
remove_column :users, :user_role_id
end
end