summaryrefslogtreecommitdiff
path: root/db/migrate/20230325061452_create_cards.rb
blob: 6e06e36ceab2d9540ade3df7382ca46c46f2f857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateCards < ActiveRecord::Migration[7.0]
  def change
    create_table :cards do |t|
      t.string :number
      t.integer :expiration_month
      t.integer :expiration_year
      t.integer :expiration_day
      t.integer :security_code
      t.references :user_account, null: false, foreign_key: true

      t.timestamps
    end
  end
end