rails-guide-store/db/migrate/20250122194822_create_subscribers.rb
Bill Niblock ef378a1f59
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Dump
2025-01-24 12:32:29 -05:00

10 lines
225 B
Ruby

class CreateSubscribers < ActiveRecord::Migration[8.0]
def change
create_table :subscribers do |t|
t.belongs_to :product, null: false, foreign_key: true
t.string :email
t.timestamps
end
end
end