aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120523123806_add_fields_to_referentials.rb7
-rw-r--r--db/migrate/20120531070108_add_type_and_options_to_import.rb8
-rw-r--r--db/schema.rb5
3 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20120523123806_add_fields_to_referentials.rb b/db/migrate/20120523123806_add_fields_to_referentials.rb
new file mode 100644
index 000000000..3958ed106
--- /dev/null
+++ b/db/migrate/20120523123806_add_fields_to_referentials.rb
@@ -0,0 +1,7 @@
+class AddFieldsToReferentials < ActiveRecord::Migration
+ def change
+ add_column :referentials, :prefix, :string
+ add_column :referentials, :projection_type, :string
+ add_column :referentials, :time_zone, :string
+ end
+end
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..d4c07cdc1 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"
@@ -269,6 +271,9 @@ ActiveRecord::Schema.define(:version => 20120531091529) do
t.string "slug"
t.datetime "created_at"
t.datetime "updated_at"
+ t.string "prefix"
+ t.string "projection_type"
+ t.string "time_zone"
end
create_table "routes", :force => true do |t|