added full pending post unit test

This commit is contained in:
albert
2010-02-09 00:44:01 -05:00
parent 07b0e213f3
commit 39424ca52b
14 changed files with 515 additions and 311 deletions

View File

@@ -83,6 +83,8 @@ CREATE TABLE pending_posts (
created_at timestamp without time zone,
updated_at timestamp without time zone,
source character varying(255),
file_path character varying(255),
content_type character varying(255),
rating character(1) NOT NULL,
uploader_id integer NOT NULL,
uploader_ip_addr inet NOT NULL,
@@ -452,8 +454,8 @@ CREATE TRIGGER trigger_posts_on_tag_index_update
INSERT INTO schema_migrations (version) VALUES ('20100204211522');
INSERT INTO schema_migrations (version) VALUES ('20100205162521');
INSERT INTO schema_migrations (version) VALUES ('20100204214746');
INSERT INTO schema_migrations (version) VALUES ('20100205162521');
INSERT INTO schema_migrations (version) VALUES ('20100205224030');

View File

@@ -3,6 +3,9 @@ class CreatePendingPosts < ActiveRecord::Migration
create_table :pending_posts do |t|
t.timestamps
t.column :source, :string
t.column :file_path, :string
t.column :content_type, :string
t.column :rating, :character, :null => false
t.column :uploader_id, :integer, :null => false
t.column :uploader_ip_addr, "inet", :null => false