bitgoblin-website/db/migrate/20230316173633_create_posts.rb

12 lines
195 B
Ruby

class CreatePosts < ActiveRecord::Migration[7.0]
def change
create_table :posts do |t|
t.string :title
t.string :author
t.text :body
t.timestamps
end
end
end