Please sign in to comment.
Ticket #523: Added Friendly URLs for Users
Continue changes on #523. Now for Users. Performed changes: * Added a migration for "slug" column * Changed model User to support FruendlyId
- Loading branch information...
Showing with 14 additions and 6 deletions.
|@@ -0,0 +1,6 @@|
|+class AddSlugToUsers < ActiveRecord::Migration|
|+ def change|
|+ add_column :users, :slug, :string|
|+ add_index :users, :slug, :unique => true|