updated migrations
This commit is contained in:
@@ -74,7 +74,7 @@ class Upload < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue Exception => x
|
rescue Exception => x
|
||||||
update_attribute(:status, "error: #{x.class} - #{x.message}")
|
update_attribute(:status, "error: #{x.class} - #{x.message}", :backtrace => x.backtrace.join("\n"))
|
||||||
ensure
|
ensure
|
||||||
delete_temp_file
|
delete_temp_file
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div id="news-ticker" data-updated-at="2011-09-01">
|
<div id="news-ticker" data-updated-at="2011-09-01">
|
||||||
<ul>
|
<ul>
|
||||||
<li>Report issues on <a href="https://github.com/r888888888/danbooru/issues/new">Github</a></li>
|
<li>Report issues on <a href="https://github.com/r888888888/danbooru/issues/new">Github</a> or the <a href="http://danbooru.donmai.us/forum/show/65870">forum</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<a href="#" id="close-news-ticker-link">close</a>
|
<a href="#" id="close-news-ticker-link">close</a>
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ class CreatePosts < ActiveRecord::Migration
|
|||||||
add_index :posts, :image_height
|
add_index :posts, :image_height
|
||||||
add_index :posts, :source
|
add_index :posts, :source
|
||||||
add_index :posts, :parent_id
|
add_index :posts, :parent_id
|
||||||
|
add_index :posts, :uploader_id
|
||||||
|
add_index :posts, :uploader_ip_addr
|
||||||
|
|
||||||
execute "CREATE INDEX index_posts_on_mpixels ON posts (((image_width * image_height)::numeric / 1000000.0))"
|
execute "CREATE INDEX index_posts_on_mpixels ON posts (((image_width * image_height)::numeric / 1000000.0))"
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,14 @@ class CreateUploads < ActiveRecord::Migration
|
|||||||
t.column :uploader_ip_addr, "inet", :null => false
|
t.column :uploader_ip_addr, "inet", :null => false
|
||||||
t.column :tag_string, :text, :null => false
|
t.column :tag_string, :text, :null => false
|
||||||
t.column :status, :string, :null => false, :default => "pending"
|
t.column :status, :string, :null => false, :default => "pending"
|
||||||
|
t.column :backtrace, :text
|
||||||
t.column :post_id, :integer
|
t.column :post_id, :integer
|
||||||
t.column :md5_confirmation, :string
|
t.column :md5_confirmation, :string
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
|
|
||||||
|
add_index :uploads, :uploader_id
|
||||||
|
add_index :uploads, :uploader_ip_addr
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
|
|||||||
Reference in New Issue
Block a user