10 lines
198 B
Ruby
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
|