summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
78e0ec7)
create one on user+role that will do the same job.
Removing it here is a bit of a hack as it will not get dropped from
existing databases but as it was not given an explicit name it is hard
to write a migration to drop it.
remove_column :users, :administrator
add_foreign_key :user_roles, [:user_id], :users, [:id]
remove_column :users, :administrator
add_foreign_key :user_roles, [:user_id], :users, [:id]
- add_index :user_roles, [:user_id]