Sha256: d6558e7987e86dfced1ee8760f9473b050efec48703f5d42f9842f1b77df5763

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

# This migration comes from spree (originally 20120605211305)
class MakeUsersEmailIndexUnique < ActiveRecord::Migration
  def up
    add_index "spree_users", ["email"], :name => "email_idx_unique", :unique => true
  end

  def down
    remove_index "spree_users", :name => "email_idx_unique"
    add_index "spree_users", ["email"], :name => "email_idx_unique"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datashift_spree-0.3.0 spec/sandbox/db/migrate/20121023154457_make_users_email_index_unique.spree.rb
datashift_spree-0.2.1 spec/sandbox/db/migrate/20121015151250_make_users_email_index_unique.spree.rb
datashift_spree-0.2.0 spec/sandbox/db/migrate/20120925192818_make_users_email_index_unique.spree.rb
datashift_spree-0.1.0 spec/sandbox/db/migrate/20120918081549_make_users_email_index_unique.spree.rb