Sha256: b9f2a047e6a2d13311ae9e529789cf1f7b42989b338aaab70618daca6f8031cf

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

class CreateShopperCreditCards < ActiveRecord::Migration[5.0]
  def change
    create_table :shopper_credit_cards do |t|
      t.string     :number,          null: false
      t.string     :name,            null: false
      t.date       :expiration_date, null: false
      t.integer    :cvv,             null: false
      t.belongs_to :order,
                   foreign_key: { to_table: :shopper_orders },
                   null: false

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 db/migrate/20170224174654_create_shopper_credit_cards.rb