Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210923042323_add_meta_data_to_user_credit_card_validations.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2958285e7a5e2504ad658ed9ffa0401d45196f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddMetaDataToUserCreditCardValidations < Gitlab::Database::Migration[1.0]
  # rubocop:disable Migration/AddLimitToTextColumns
  def change
    change_table :user_credit_card_validations do |t|
      t.date :expiration_date
      t.integer :last_digits, limit: 2 # last 4 digits
      t.text :holder_name
    end
  end
  # rubocop:enable Migration/AddLimitToTextColumns
end