blob: 8975e61590bf0cf446fc5cf4b167e89fe24edc69 (
plain)
1
2
3
4
5
6
7
8
9
|
class CreateCarts < ActiveRecord::Migration[7.0]
def change
create_table :carts do |t|
t.belongs_to :user_account, null: false, index: { unique: true }, foreign_key: true
t.timestamps
end
end
end
|