aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120531070108_add_type_and_options_to_import.rb8
-rw-r--r--db/schema.rb2
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20120531070108_add_type_and_options_to_import.rb b/db/migrate/20120531070108_add_type_and_options_to_import.rb
new file mode 100644
index 000000000..490427c8a
--- /dev/null
+++ b/db/migrate/20120531070108_add_type_and_options_to_import.rb
@@ -0,0 +1,8 @@
+class AddTypeAndOptionsToImport < ActiveRecord::Migration
+ def change
+ change_table :imports do |t|
+ t.string :type, :options
+ end
+ Import.update_all :type => "NeptuneImport"
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index d8532b785..5e65e41e4 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -184,6 +184,8 @@ ActiveRecord::Schema.define(:version => 20120531091529) do
t.string "status"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "type"
+ t.string "options"
end
add_index "imports", ["referential_id"], :name => "index_imports_on_referential_id"