diff options
| author | Michel Etienne | 2012-04-27 15:00:18 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-04-27 15:00:18 +0200 |
| commit | 98ab3dc97be4d71606a985a3a587b253e0b6c685 (patch) | |
| tree | 2fa77987d83a7fcd0c755f31854199d561b2f3d3 /db | |
| parent | ba2527b56c76ca173a8769f1f3cbe949842c96b1 (diff) | |
| download | chouette-core-98ab3dc97be4d71606a985a3a587b253e0b6c685.tar.bz2 | |
create pages for connection links and spec for timetables
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20120426141032_create_chouette_connection_link.rb | 28 | ||||
| -rw-r--r-- | db/schema.rb | 25 |
2 files changed, 52 insertions, 1 deletions
diff --git a/db/migrate/20120426141032_create_chouette_connection_link.rb b/db/migrate/20120426141032_create_chouette_connection_link.rb new file mode 100644 index 000000000..185c49af2 --- /dev/null +++ b/db/migrate/20120426141032_create_chouette_connection_link.rb @@ -0,0 +1,28 @@ +class CreateChouetteConnectionLink < ActiveRecord::Migration + def up + create_table "connectionlink", :force => true do |t| + t.integer "departureid", :limit => 8 + t.integer "arrivalid", :limit => 8 + t.string "objectid", :null => false + t.integer "objectversion" + t.datetime "creationtime" + t.string "creatorid" + t.string "name" + t.string "comment" + t.decimal "linkdistance", :precision => 19, :scale => 2 + t.string "linktype" + t.time "defaultduration" + t.time "frequenttravellerduration" + t.time "occasionaltravellerduration" + t.time "mobilityrestrictedtravellerduration" + t.boolean "mobilityrestrictedsuitability" + t.boolean "stairsavailability" + t.boolean "liftavailability" + t.integer "intuserneeds" + end + add_index "connectionlink", ["objectid"], :name => "connectionlink_objectid_key", :unique => true + end + + def down + end +end diff --git a/db/schema.rb b/db/schema.rb index 07dc4922d..7666b10bf 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 => 20120425125542) do +ActiveRecord::Schema.define(:version => 20120426141032) do create_table "company", :force => true do |t| t.string "objectid" @@ -31,6 +31,29 @@ ActiveRecord::Schema.define(:version => 20120425125542) do add_index "company", ["objectid"], :name => "company_objectid_key", :unique => true add_index "company", ["registrationnumber"], :name => "company_registrationnumber_key", :unique => true + create_table "connectionlink", :force => true do |t| + t.integer "departureid", :limit => 8 + t.integer "arrivalid", :limit => 8 + t.string "objectid", :null => false + t.integer "objectversion" + t.datetime "creationtime" + t.string "creatorid" + t.string "name" + t.string "comment" + t.decimal "linkdistance", :precision => 19, :scale => 2 + t.string "linktype" + t.time "defaultduration" + t.time "frequenttravellerduration" + t.time "occasionaltravellerduration" + t.time "mobilityrestrictedtravellerduration" + t.boolean "mobilityrestrictedsuitability" + t.boolean "stairsavailability" + t.boolean "liftavailability" + t.integer "intuserneeds" + end + + add_index "connectionlink", ["objectid"], :name => "connectionlink_objectid_key", :unique => true + create_table "line", :force => true do |t| t.integer "ptnetworkid", :limit => 8 t.integer "companyid", :limit => 8 |
