Sha256: 75bcc17defeb355dae4bfb43d95e4278b7932343fc1ec2eb3901237696c8fe13

Contents?: true

Size: 335 Bytes

Versions: 13

Compression:

Stored size: 335 Bytes

Contents

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

class TokenUpgrade < Cardio::Migration::Core
  def up
    update_card! :token, name: "*api key", codename: "api_key"
    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

13 entries across 13 versions & 1 rubygems

Version Path
card-1.105.6 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.5 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.4 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.3 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.2.pre1 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.2 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.1 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.105.0 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.104.2 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.104.1 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.104.0 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.103.4 db/migrate_core_cards/20190904174403_token_upgrade.rb
card-1.103.3 db/migrate_core_cards/20190904174403_token_upgrade.rb