removed cached gems

This commit is contained in:
albert
2010-02-09 10:50:58 -05:00
parent c6d4a13e7d
commit ef8be1a500
33 changed files with 3 additions and 4 deletions
-4
View File
@@ -1,8 +1,4 @@
class Post < ActiveRecord::Base
class Deletion < ActiveRecord::Base
set_table_name "deleted_posts"
end
def file_path
prefix = Rails.env == "test" ? "test." : ""
"#{Rails.root}/public/data/original/#{prefix}#{md5}.#{file_ext}"
@@ -11,6 +11,7 @@ class CreatePosts < ActiveRecord::Migration
t.column :is_rating_locked, :boolean, :null => false, :default => false
t.column :is_pending, :boolean, :null => false, :default => false
t.column :is_flagged, :boolean, :null => false, :default => false
t.column :is_deleted, :boolean, :null => false, :default => false
t.column :approver_id, :integer
t.column :change_seq, :integer, :default => "nextval('post_change_seq'::regclass)"
@@ -19,6 +20,7 @@ class CreatePosts < ActiveRecord::Migration
t.column :uploader_ip_addr, "inet", :null => false
# Cached
t.column :fav_count, :integer
t.column :last_noted_at, :datetime
t.column :last_commented_at, :datetime
+1
View File
@@ -149,6 +149,7 @@ class PendingPostTest < ActiveSupport::TestCase
assert_equal(@pending_post.md5, post.md5)
assert_equal("jpg", post.file_ext)
assert(File.exists?(post.file_path))
assert_equal(28086, File.size(post.file_path))
assert_equal(post.id, @pending_post.post_id)
assert_equal("finished", @pending_post.status)
end
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.