掲示板実装
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2026-02-19 22:30:59 +09:00
parent f25fd6f802
commit bb9ec2df1d
38 changed files with 1711 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
class CreateBoardPosts < ActiveRecord::Migration[8.1]
def change
create_table :board_posts do |t|
t.integer :board_id, null: false
t.integer :participant_id, null: false
t.text :body, null: false
t.string :phase
t.timestamps
end
add_index :board_posts, :board_id
add_index :board_posts, :participant_id
add_foreign_key :board_posts, :boards
add_foreign_key :board_posts, :participants
end
end