diff --git a/admin/app/admin/crash_dumps.rb b/admin/app/admin/crash_dumps.rb index 83622fc80..399323e11 100644 --- a/admin/app/admin/crash_dumps.rb +++ b/admin/app/admin/crash_dumps.rb @@ -13,6 +13,7 @@ ActiveAdmin.register JamRuby::CrashDump, :as => 'Crash Dump' do column "Client Version", :client_version column "Client Type", :client_type column "Crash Context", :crash_context + column "FileSize", :fsize column "Download" do |post| link_to 'Link', post.sign_url end diff --git a/db/up/crash_dumps_idx.sql b/db/up/crash_dumps_idx.sql index 09506bfd6..50e38cad0 100755 --- a/db/up/crash_dumps_idx.sql +++ b/db/up/crash_dumps_idx.sql @@ -3,4 +3,5 @@ CREATE INDEX crash_dumps_client_id_idx ON crash_dumps(client_id); CREATE INDEX crash_dumps_timestamp_idx ON crash_dumps(timestamp); ALTER TABLE crash_dumps ADD COLUMN client_version VARCHAR(100) NOT NULL; -ALTER TABLE crash_dumps ADD COLUMN crash_context VARCHAR(10000) NOT NULL; +ALTER TABLE crash_dumps ADD COLUMN crash_context VARCHAR(10000); +ALTER TABLE crash_dumps ADD COLUMN fsize VARCHAR(64); \ No newline at end of file diff --git a/web/db/schema.rb b/web/db/schema.rb index ecfaf9e2c..bbbcca863 100644 --- a/web/db/schema.rb +++ b/web/db/schema.rb @@ -269,7 +269,8 @@ ActiveRecord::Schema.define(:version => 0) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "client_version", :limit => 100, :null => false - t.string "crash_context", :limit => 10000,:null => false + t.string "crash_context", :limit => 10000 + t.string "fsize", :limit => 64 end add_index "crash_dumps", ["client_id"], :name => "crash_dumps_client_id_idx" diff --git a/web/db/structure.sql b/web/db/structure.sql index 2c0b0cfd9..44b268795 100644 --- a/web/db/structure.sql +++ b/web/db/structure.sql @@ -547,7 +547,8 @@ CREATE TABLE crash_dumps ( created_at timestamp without time zone DEFAULT now() NOT NULL, updated_at timestamp without time zone DEFAULT now() NOT NULL, client_version character varying(100) NOT NULL, - crash_context character varying(10000) NOT NULL + crash_context character varying(10000), + fsize character varying(64) );