cirandas.net

ref: master

db/migrate/054_add_reference_article.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class AddReferenceArticle < ActiveRecord::Migration
  def self.up
    add_column :articles, :reference_article_id, :integer
    add_column :article_versions, :reference_article_id, :integer
  end

  def self.down
    remove_column :articles, :reference_article_id
    remove_column :article_versions, :reference_article_id
  end
end