diff options
author | Philip Arndt <p@arndt.io> | 2013-07-14 04:37:18 +1200 |
---|---|---|
committer | Philip Arndt <p@arndt.io> | 2013-07-14 04:40:18 +1200 |
commit | 49c38f208b8a05cee49400ffababc49dfc431daa (patch) | |
tree | c334aacead57bd50efa4d473be2e189cd8bcdfb0 /db/migrate/20120223022021_add_access_count_to_posts.rb | |
parent | 6c14fbc20c8dece121b7569b7a5a0bd3c497fd57 (diff) | |
download | refinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.tar.gz refinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.tar.bz2 refinerycms-blog-49c38f208b8a05cee49400ffababc49dfc431daa.zip |
Revert f906ef0 but maintain table name improvements
Diffstat (limited to 'db/migrate/20120223022021_add_access_count_to_posts.rb')
-rw-r--r-- | db/migrate/20120223022021_add_access_count_to_posts.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |