Sha256: 2d2ea2cf8af76d3a2a5d422b59d2d2f13c327b9696f146c4795144be70ccb12a

Contents?: true

Size: 177 Bytes

Versions: 9

Compression:

Stored size: 177 Bytes

Contents

class MakeEmailNullable < ActiveRecord::Migration
  def change
    change_column_null :users, :email, true
    remove_index :users, :email
    add_index :users, :email
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.19 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.18 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.17 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.16 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.15 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.14 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.13 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb
happy_seed-0.0.12 lib/generators/happy_seed/omniauth/templates/make_email_nullable.rb