Sha256: cc6378e9c09c3e57e33d208c40be57f5a69966715495c166d913a739e04b6fbc

Contents?: true

Size: 234 Bytes

Versions: 9

Compression:

Stored size: 234 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-blog-3.0.2 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-3.0.1 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.1.0 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.5 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.4 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.3 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.2 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.1 db/migrate/20120223022021_add_access_count_to_posts.rb
refinerycms-blog-2.0.0 db/migrate/20120223022021_add_access_count_to_posts.rb