aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorLuc Donnet2012-04-25 10:40:15 +0200
committerLuc Donnet2012-04-25 10:40:15 +0200
commit07b8f918639b6095f0f0bb700ca310deaa18841c (patch)
tree68d6a319164a0d633ed7052fa482c93788c3930c /db
parentfcac578e38f4e620113b3b877e27b952cf4caa95 (diff)
downloadchouette-core-07b8f918639b6095f0f0bb700ca310deaa18841c.tar.bz2
Add spec request for lines networks and companies
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120425080337_create_chouette_route.rb21
-rw-r--r--db/schema.rb17
2 files changed, 37 insertions, 1 deletions
diff --git a/db/migrate/20120425080337_create_chouette_route.rb b/db/migrate/20120425080337_create_chouette_route.rb
new file mode 100644
index 000000000..98d0f3c11
--- /dev/null
+++ b/db/migrate/20120425080337_create_chouette_route.rb
@@ -0,0 +1,21 @@
+class CreateChouetteRoute < ActiveRecord::Migration
+ def up
+ create_table "route", :force => true do |t|
+ t.integer "lineid", :limit => 8
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "name"
+ t.string "comment"
+ t.integer "oppositerouteid", :limit => 8
+ t.string "publishedname"
+ t.string "number"
+ t.string "direction"
+ t.string "wayback"
+ end
+ end
+
+ def down
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 89a3326fd..c21ab020c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120416095046) do
+ActiveRecord::Schema.define(:version => 20120425080337) do
create_table "company", :force => true do |t|
t.string "objectid"
@@ -75,6 +75,21 @@ ActiveRecord::Schema.define(:version => 20120416095046) do
t.datetime "updated_at"
end
+ create_table "route", :force => true do |t|
+ t.integer "lineid", :limit => 8
+ t.string "objectid"
+ t.integer "objectversion"
+ t.datetime "creationtime"
+ t.string "creatorid"
+ t.string "name"
+ t.string "comment"
+ t.integer "oppositerouteid", :limit => 8
+ t.string "publishedname"
+ t.string "number"
+ t.string "direction"
+ t.string "wayback"
+ end
+
create_table "stoparea", :force => true do |t|
t.integer "parentid", :limit => 8
t.string "objectid"