summaryrefslogtreecommitdiff
path: root/db/migrate/20140304043654_add_index_to_users_user_name.rb
blob: 22ca8c367d69f89c3eff1e2a006e888030b83563 (plain)
1
2
3
4
5
6
7
class AddIndexToUsersUserName < ActiveRecord::Migration
 
# ensures that the username is unique
  def change
	add_index :users, :user_name, unique: true
  end
end