From 49c38f208b8a05cee49400ffababc49dfc431daa Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sun, 14 Jul 2013 04:37:18 +1200 Subject: Revert f906ef0 but maintain table name improvements --- db/migrate/20120223022021_add_access_count_to_posts.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20120223022021_add_access_count_to_posts.rb (limited to 'db/migrate/20120223022021_add_access_count_to_posts.rb') diff --git a/db/migrate/20120223022021_add_access_count_to_posts.rb b/db/migrate/20120223022021_add_access_count_to_posts.rb new file mode 100644 index 0000000..02cd131 --- /dev/null +++ b/db/migrate/20120223022021_add_access_count_to_posts.rb @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3