cirandas.net

ref: master

db/migrate/20151112135709_add_archived_to_articles.rb


1
2
3
4
5
6
7
8
9
class AddArchivedToArticles < ActiveRecord::Migration
  def up
    add_column :articles, :archived, :boolean, :default => false
  end

  def down
    remove_column :articles, :archived
  end
end