foalfetch/db/migrate/20240406101101_create_blogs.rb

10 lines
207 B
Ruby
Raw Normal View History

2024-04-06 13:00:46 +02:00
class CreateBlogs < ActiveRecord::Migration[7.0]
def change
create_table :blogs do |t|
t.timestamps null: false
t.text :title, null: false
t.text :body, null: false
end
end
end