aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-07-30 06:33:23 +0100
committerRobin Houston <robin@lenny.robin>2011-07-30 06:33:23 +0100
commit272623f901f8f74523de1bcd7912c17b48cd0780 (patch)
tree67479d7849ba53a2960ba79b87eeafc360ca4150
parentc4fc40a6577bdc70cc58dfc151d42804890e4745 (diff)
Let’s not do these migrations on WDTK. At least not yet.
-rw-r--r--db/migrate/099_move_raw_email_to_filesystem.rb23
-rw-r--r--db/migrate/100_remove_redundant_raw_email_columns.rb12
2 files changed, 0 insertions, 35 deletions
diff --git a/db/migrate/099_move_raw_email_to_filesystem.rb b/db/migrate/099_move_raw_email_to_filesystem.rb
deleted file mode 100644
index ea77580e1..000000000
--- a/db/migrate/099_move_raw_email_to_filesystem.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-class MoveRawEmailToFilesystem < ActiveRecord::Migration
- def self.up
- batch_size = 10
- 0.step(RawEmail.count, batch_size) do |i|
- RawEmail.find(:all, :limit => batch_size, :offset => i, :order => :id).each do |raw_email|
- if !File.exists?(raw_email.filepath)
- STDERR.puts "converting raw_email " + raw_email.id.to_s
- raw_email.data = raw_email.dbdata
- #raw_email.dbdata = nil
- #raw_email.save!
- end
- end
- end
- end
-
- def self.down
- raise "safer not to have reverse migration scripts, and we never use them"
- end
-end
-
-
-
-
diff --git a/db/migrate/100_remove_redundant_raw_email_columns.rb b/db/migrate/100_remove_redundant_raw_email_columns.rb
deleted file mode 100644
index edf6006d7..000000000
--- a/db/migrate/100_remove_redundant_raw_email_columns.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class RemoveRedundantRawEmailColumns < ActiveRecord::Migration
- def self.up
- remove_column :raw_emails, :data_text
- remove_column :raw_emails, :data_binary
- end
- def self.down
- end
-end
-
-
-
-