class CreateAnnouncements < ActiveRecord::Migration def self.up create_table :announcements do |t| t.string :title t.text :body t.datetime :created_at t.datetime :updated_at t.datetime :display_until t.boolean :is_active, :default => true t.integer :location_id t.timestamps end end def self.down drop_table :announcements end end