renamed pending post to upload

This commit is contained in:
albert
2010-02-12 13:46:49 -05:00
parent f0ed612042
commit ba05f727b0
4 changed files with 430 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
class CreateUploads < ActiveRecord::Migration
def self.up
create_table :uploads 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
t.column :tag_string, :text, :null => false
t.column :status, :string, :null => false, :default => "pending"
t.column :post_id, :integer
end
end
def self.down
drop_table :uploads
end
end