creddit/db/migrate/20150806191452_add_friendly_id_to_user.rb

7 lines
155 B
Ruby
Raw Normal View History

2015-08-06 15:10:31 -04:00
class AddFriendlyIdToUser < ActiveRecord::Migration
def change
add_column :users, :slug, :string
add_index :users, :slug, unique: true
end
end