Sha256: ede8e52d1dc5ec8d08915e523bcd3c78fa744e595aa4035e3ef00be50d8d8b1e

Contents?: true

Size: 609 Bytes

Versions: 26

Compression:

Stored size: 609 Bytes

Contents

class CreateCreditCards < ActiveRecord::Migration
  def self.up
    create_table :credit_cards do |t|
      t.integer :order_id
      t.string :number # IMPORTANT: Should be encrypted with the private key stored on a separate physical machine
      t.string :verification_value # IMPORTANT: Should be encrypted with the private key stored on a separate physical machine
      t.string :cc_type
      t.string :month
      t.string :year
      t.string :display_number
      t.string :first_name
      t.string :last_name
      t.timestamps
    end
  end

  def self.down
    drop_table :credit_cards
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
spree-0.7.1 db/migrate/019_create_credit_cards.rb
spree-0.7.0 db/migrate/019_create_credit_cards.rb
spree-0.8.0 db/migrate/019_create_credit_cards.rb
spree-0.8.1 db/migrate/019_create_credit_cards.rb
spree-0.8.2 db/migrate/019_create_credit_cards.rb
spree-0.8.3 db/migrate/019_create_credit_cards.rb