rails-refresher/db/migrate/20240704183304_create_comments.rb
Tyrel Souza 8a91d51c39
finish
2024-07-04 21:00:08 -04:00

12 lines
242 B
Ruby

class CreateComments < ActiveRecord::Migration[7.1]
def change
create_table :comments do |t|
t.string :commenter
t.text :body
t.references :article, null: false, foreign_key: true
t.timestamps
end
end
end