mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
Renamed UserRoles to UserRole Joins, Needed ID column in user_role_joins table
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user