kurosaba/db/migrate/20231230205017_create_posts.rb

20 lines
417 B
Ruby

class CreatePosts < ActiveRecord::Migration[7.1]
def change
create_table :posts do |t|
t.integer :board_id
t.integer :parent_id
t.integer :visible_id
t.integer :reply_id
t.string :name
t.string :title
t.text :message
t.text :message_formatted
t.string :password
t.datetime :bumped_at
t.datetime :deleted_at
t.timestamps
end
end
end