Sha256: c7d57e3a60a9c2609594f3ab36ed6f41b6116d1af30d38d4d95755f8e3e1e47e

Contents?: true

Size: 248 Bytes

Versions: 168

Compression:

Stored size: 248 Bytes

Contents

class DropEmailUniqueConstraintEnjuLeafRc10 < ActiveRecord::Migration[4.2]
  def up
    remove_index :users, :email
    add_index :users, :email
  end

  def down
    remove_index :users, :email
    add_index :users, :email, unique: true
  end
end

Version data entries

168 entries across 168 versions & 21 rubygems

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_circulation-0.3.11 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_purchase_request-0.3.2 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_library-0.3.11 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_ndl-0.3.3 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_nii-0.3.2 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_loc-0.3.1 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_subject-0.3.4 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_circulation-0.3.10 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_leaf-1.3.6 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_library-0.3.10 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_message-0.3.4 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_event-0.3.5 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_bookmark-0.3.2 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_seed-0.3.6 db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb