class AddArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.column :title, :text
      t.column :body, :text
      t.column :created_on, :date
      t.column :updated_on, :date
    end
    create_table :announcements do |t|
      t.column :body, :text
      t.column :created_on, :date
      t.column :updated_on, :date
    end
  end

  def self.down
    drop_table :articles
    drop_table :announcements
  end
end