diff options
| author | Xinhui | 2016-09-29 15:44:41 +0200 |
|---|---|---|
| committer | Xinhui | 2016-09-29 15:44:41 +0200 |
| commit | cecd26452ce1cb2486d926421c1ae6360c973d1b (patch) | |
| tree | 88493b21d4074d1dcc81cc1e97978b3de1f45cda /db | |
| parent | 5dedb1352f274113e97a2554d9249e56a865a4bf (diff) | |
| download | chouette-core-cecd26452ce1cb2486d926421c1ae6360c973d1b.tar.bz2 | |
Model StopAreaReferentialSyncMessage
Refs #1710
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20160929133436_create_stop_area_referential_sync_messages.rb | 13 | ||||
| -rw-r--r-- | db/schema.rb | 13 |
2 files changed, 25 insertions, 1 deletions
diff --git a/db/migrate/20160929133436_create_stop_area_referential_sync_messages.rb b/db/migrate/20160929133436_create_stop_area_referential_sync_messages.rb new file mode 100644 index 000000000..a04323233 --- /dev/null +++ b/db/migrate/20160929133436_create_stop_area_referential_sync_messages.rb @@ -0,0 +1,13 @@ +class CreateStopAreaReferentialSyncMessages < ActiveRecord::Migration + def change + create_table :stop_area_referential_sync_messages do |t| + t.integer :criticity + t.string :message_key + t.hstore :message_attributs + t.references :stop_area_referential_sync + + t.timestamps + end + add_index :stop_area_referential_sync_messages, :stop_area_referential_sync_id, name: 'stop_area_referential_sync_id' + end +end diff --git a/db/schema.rb b/db/schema.rb index 83a8beb9e..e519a381d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160929131958) do +ActiveRecord::Schema.define(version: 20160929133436) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -454,6 +454,17 @@ ActiveRecord::Schema.define(version: 20160929131958) do t.boolean "owner" end + create_table "stop_area_referential_sync_messages", force: true do |t| + t.integer "criticity" + t.string "message_key" + t.hstore "message_attributs" + t.integer "stop_area_referential_sync_id" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "stop_area_referential_sync_messages", ["stop_area_referential_sync_id"], :name => "stop_area_referential_sync_id" + create_table "stop_area_referential_syncs", force: true do |t| t.integer "stop_area_referential_id" t.datetime "created_at" |
