updated migrations

This commit is contained in:
albert
2011-09-16 16:58:22 -04:00
parent 0457fa144d
commit 323cee64ca
4 changed files with 8 additions and 2 deletions

View File

@@ -9,10 +9,14 @@ class CreateUploads < ActiveRecord::Migration
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 :backtrace, :text
t.column :post_id, :integer
t.column :md5_confirmation, :string
t.timestamps
end
add_index :uploads, :uploader_id
add_index :uploads, :uploader_ip_addr
end
def self.down