Sha256: 20422c76ceeec6bb83ce648e86bc63d9b5f00f412b1b7dd0c9c5f961cc8ed8ca

Contents?: true

Size: 356 Bytes

Versions: 8

Compression:

Stored size: 356 Bytes

Contents

# -*- encoding : utf-8 -*-

class TokenUpgrade < Card::Migration::Core
  def up
    update_card! :token, name: "*api key", codename: "api_key", update_referers: true
    delete_code_card :expiration

    %i[user signup].each do |type|
      %i[salt status api_key].each do |field|
        Card[[type, :account, field]]&.delete!
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.100.0 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.6 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.5 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.4 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.3 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.2 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.1 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.99.0 db/migrate_core_cards/20190904174403_token_upgrade.rb