ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
686 B

  1. class CreateTheatres < ActiveRecord::Migration[8.0]
  2. def change
  3. create_table :theatres do |t|
  4. t.string :name
  5. t.datetime :opens_at, null: false, index: true
  6. t.datetime :closes_at, index: true
  7. t.integer :kind, null: false, index: true
  8. t.references :current_post, foreign_key: { to_table: :posts }, index: true
  9. t.datetime :current_post_started_at
  10. t.integer :next_comment_no, null: false, default: 1
  11. t.references :host_user, foreign_key: { to_table: :users }
  12. t.references :created_by_user, null: false, foreign_key: { to_table: :users }, index: true
  13. t.timestamps
  14. t.datetime :discarded_at, index: true
  15. end
  16. end
  17. end