上映会のし組み作り(#295) (#296)
#295 #295 #295 #295 #295 #295 #295 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #296
This commit was merged in pull request #296.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class CreateTheatreComments < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :theatre_comments, primary_key: [:theatre_id, :no] do |t|
|
||||
t.references :theatre, null: false, foreign_key: { to_table: :theatres }
|
||||
t.integer :no, null: false
|
||||
t.references :user, foreign_key: { to_table: :users }
|
||||
t.text :content, null: false
|
||||
t.timestamps
|
||||
t.datetime :discarded_at, index: true
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user