cirandas.net

ref: master

db/migrate/080_add_external_link_to_articles.rb


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

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