Sprankelprachtig aan/afmeldsysteem

20161207204407_create_participants.rb 316B

1234567891011121314
  1. class CreateParticipants < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :participants do |t|
  4. t.references :person, foreign_key: true
  5. t.references :activity, foreign_key: true
  6. t.boolean :is_organizer
  7. t.boolean :attending
  8. t.text :notes
  9. t.timestamps
  10. end
  11. end
  12. end