Renamed UserRoles to UserRole Joins, Needed ID column in user_role_joins table

This commit is contained in:
Jason Denney
2013-04-24 07:56:02 -04:00
parent 91bb2ea43e
commit a083ed715b
5 changed files with 6 additions and 8 deletions
@@ -3,7 +3,6 @@ class AlterUserRoles < ActiveRecord::Migration
rename_table :user_roles, :user_role_joins
change_table :user_role_joins do |t|
t.rename :role, :role_id
t.remove :id
end
end
end
+1 -1
View File
@@ -154,7 +154,7 @@ ActiveRecord::Schema.define(:version => 20130424005701) do
t.datetime "updated_at", :null => false
end
create_table "user_role_joins", :id => false, :force => true do |t|
create_table "user_role_joins", :force => true do |t|
t.string "role_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false