Sprankelprachtig aan/afmeldsysteem

20161207204249_create_activities.rb 397B

123456789101112131415161718
  1. class CreateActivities < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :activities do |t|
  4. t.string :public_name
  5. t.string :secret_name
  6. t.string :description
  7. t.string :location
  8. t.datetime :start
  9. t.datetime :end
  10. t.datetime :deadline
  11. t.boolean :show_hidden
  12. t.references :group, foreign_key: true
  13. t.timestamps
  14. end
  15. end
  16. end