aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/055_stop_new_responses.rb2
-rw-r--r--db/migrate/056_add_attachment_text.rb9
-rw-r--r--db/schema.rb11
3 files changed, 16 insertions, 6 deletions
diff --git a/db/migrate/055_stop_new_responses.rb b/db/migrate/055_stop_new_responses.rb
index 9c9e7ad9f..1ebe2142a 100644
--- a/db/migrate/055_stop_new_responses.rb
+++ b/db/migrate/055_stop_new_responses.rb
@@ -4,6 +4,6 @@ class StopNewResponses < ActiveRecord::Migration
end
def self.down
- remove :info_requests, :stop_new_responses
+ remove_column :info_requests, :stop_new_responses
end
end
diff --git a/db/migrate/056_add_attachment_text.rb b/db/migrate/056_add_attachment_text.rb
new file mode 100644
index 000000000..adcb97d5f
--- /dev/null
+++ b/db/migrate/056_add_attachment_text.rb
@@ -0,0 +1,9 @@
+class AddAttachmentText < ActiveRecord::Migration
+ def self.up
+ add_column :incoming_messages, :cached_attachment_text, :text
+ end
+
+ def self.down
+ remove_column :incoming_messages, :cached_attachment_text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 4004371b8..1bcf94dfa 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 55) do
+ActiveRecord::Schema.define(:version => 56) do
create_table "acts_as_xapian_jobs", :force => true do |t|
t.string "model", :null => false
@@ -20,10 +20,11 @@ ActiveRecord::Schema.define(:version => 55) do
add_index "acts_as_xapian_jobs", ["model", "model_id"], :name => "index_acts_as_xapian_jobs_on_model_and_model_id", :unique => true
create_table "incoming_messages", :force => true do |t|
- t.integer "info_request_id", :null => false
- t.text "raw_data", :null => false
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.integer "info_request_id", :null => false
+ t.text "raw_data", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.text "cached_attachment_text"
end
create_table "info_request_events", :force => true do |t|