class AddAuthorIdToDocuments < ActiveRecord::Migration
  def self.up
    add_column :documents, :author_id, :integer, :default => 0,:null => false
  end

  def self.down
    remove_column :documents, :author_id
  end
end
