From 7b5d00f1bf262cc40b6b9dc21bb42e2dc7c80afe Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 25 Mar 2023 00:15:52 -0600 Subject: AƱade modelo Card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20230325061452_create_cards.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 db/migrate/20230325061452_create_cards.rb (limited to 'db/migrate') diff --git a/db/migrate/20230325061452_create_cards.rb b/db/migrate/20230325061452_create_cards.rb new file mode 100644 index 0000000..6e06e36 --- /dev/null +++ b/db/migrate/20230325061452_create_cards.rb @@ -0,0 +1,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 -- cgit v1.2.3