Sha256: a11c80034179cc4b40f7e23ee43810e8127437fcf6bd3d6fe5b370b26ace7f85

Contents?: true

Size: 585 Bytes

Versions: 134

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

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

134 entries across 134 versions & 2 rubygems

Version Path
decidim-core-0.6.0 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-0.6.0 decidim-core/db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.5.1 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-0.5.1 decidim-core/db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.5.0 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-0.5.0 decidim-core/db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.4.4 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.4.2 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.4.1 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.4.3 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.4.0 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.3.2 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.3.1 db/migrate/20161006085629_add_confirmable_to_devise.rb
decidim-core-0.3.0 db/migrate/20161006085629_add_confirmable_to_devise.rb