aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAlban Peignier2012-06-04 16:24:49 +0200
committerAlban Peignier2012-06-04 16:24:49 +0200
commit5eb971da6c9808cc2ff8f1ab1bcc7ffecc53442d (patch)
treeee027c50b87051ce4497b60cdb85d1129266e84f /db
parent6163c10aa33d62e735d63aae7df796f0152ad3cc (diff)
downloadchouette-core-5eb971da6c9808cc2ff8f1ab1bcc7ffecc53442d.tar.bz2
Add several import types support
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"