Project

General

Profile

Feature #7554 » 20111018230420_add_author_id_to_documents.rb

Preethi Sriram, 2011-11-02 18:58

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

    
6
  def self.down
7
    remove_column :documents, :author_id
8
  end
9
end
(4-4/6)