Soc/db/migrate/20230917114037_create_micro...

10 lines
198 B
Ruby

class CreateMicroposts < ActiveRecord::Migration[7.0]
def change
create_table :microposts do |t|
t.references :user, null: false, foreign_key: true
t.timestamps
end
end
end