Sprankelprachtig aan/afmeldsysteem

20161207204315_create_members.rb 253B

123456789101112
  1. class CreateMembers < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :members do |t|
  4. t.references :person, foreign_key: true
  5. t.references :group, foreign_key: true
  6. t.boolean :is_leader
  7. t.timestamps
  8. end
  9. end
  10. end