class CreateTweets < ActiveRecord::Migration[6.1]
def change
create_table :tweets do |t|
t.string :message
t.belongs_to :user, index: true, foreign_key: true
t.timestamps
end