aboutsummaryrefslogblamecommitdiffstats
path: root/db/migrate/20120223022021_add_access_count_to_posts.rb
blob: 02cd131b16f948cc0551f19d17d60fb981388ac5 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                      
class AddAccessCountToPosts < ActiveRecord::Migration
  def change
    add_column Refinery::Blog::Post.table_name, :access_count, :integer, :default => 0
    
    add_index Refinery::Blog::Post.table_name, :access_count
    
  end
end