Sha256: 2c97a94a8aca1e5919fae5af03d7379c7144e1150ebdaf60c9a3fcc364939728

Contents?: true

Size: 360 Bytes

Versions: 41

Compression:

Stored size: 360 Bytes

Contents

class RemoveUniqueFromUserEmail < ActiveRecord::Migration
  def up
    remove_index "users", :name => "index_users_on_email"
    add_index "users", ["email"], :name => "index_users_on_email"
  end

  def down
    remove_index "users", :name => "index_users_on_email"
    add_index "users", ["email"], :name => "index_users_on_email", :unique => true
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iugusdk-1.0.11 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.10 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.9 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.8 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.7 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.6 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.5 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.4 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.3 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.2 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.1 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.32 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.31 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.30 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.29 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.28 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.27 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.26 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.25 db/migrate/20120613173114_remove_unique_from_user_email.rb
iugusdk-1.0.0.alpha.24 db/migrate/20120613173114_remove_unique_from_user_email.rb