-
Notifications
You must be signed in to change notification settings - Fork 1
Databases
Zakaria Braksa edited this page May 6, 2015
·
1 revision
There are 2 databases,
-
First one is the typical database built through migrations and holds the data for models in
app/models
(except few ones in app/models/traccar), we call it the Main Database -
The 2nd database belongs to Traccar and is created and initialized by Traccar, but Rails has access to it and can read and write to it, this one we call it Traccar Database or Secondary Database.
One scenario when we need to write to that database is when a user creates a device, in that case we create a device in the Main database, but also its counterpart in the Traccar database.