Files
danbooru/db/migrate/20100205224030_create_pending_posts.rb
2010-02-09 00:44:01 -05:00

22 lines
623 B
Ruby

class CreatePendingPosts < ActiveRecord::Migration
def self.up
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
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 :pending_posts
end
end