Sha256: 9ea7baa11f5361d3b68a8a77d600448b135a1fafa65032a4759e3ef47c509e12

Contents?: true

Size: 554 Bytes

Versions: 16

Compression:

Stored size: 554 Bytes

Contents

class AddConfirmableToDevise < ActiveRecord::Migration[5.0]
  def up
    add_column :decidim_users, :confirmation_token, :string
    add_column :decidim_users, :confirmed_at, :datetime
    add_column :decidim_users, :confirmation_sent_at, :datetime
    add_column :decidim_users, :unconfirmed_email, :string
    add_index :decidim_users, :confirmation_token, unique: true
    execute("UPDATE decidim_users SET confirmed_at = NOW()")
  end

  def down
    remove_columns :decidim_users, :confirmation_token, :confirmed_at, :confirmation_sent_at
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
decidim-core-0.2.0 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.1.0 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.8.1 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.7 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.6 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.5 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.3 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.2 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha9 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha8 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha7 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha6 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha5 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha4 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.0.1.alpha3 db/migrate/20161006085629_add_confirmable_to_devise.rb