058_add_hits_to_articles.rb 297 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 class AddHitsToArticles < ActiveRecord::Migration def self.up add_column :articles, :hits, :integer, :default => 0 add_column :article_versions, :hits, :integer, :default => 0 end def self.down remove_column :articles, :hits remove_column :article_versions, :hits end end