20191218153258_create_announcements.rb 389 B

12345678910111213141516
  1. class CreateAnnouncements < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :announcements do |t|
  4. t.text :text, null: false, default: ''
  5. t.boolean :published, null: false, default: false
  6. t.boolean :all_day, null: false, default: false
  7. t.datetime :scheduled_at
  8. t.datetime :starts_at
  9. t.datetime :ends_at
  10. t.timestamps
  11. end
  12. end
  13. end