Skip to content

Implementation Details and Implementation Workflow

Eugen Kuksa edited this page Aug 29, 2016 · 5 revisions

Ontohub-Backend

Models

All models are defined in the ontohub-models gem. These are included in the ontohub-backend and hets-ontohub-adapter. However, they must not be required in the respective Gemfile, that is, use this line:

gem 'ontohub-models', github: 'ontohub/ontohub-models', branch: 'master', require: false

Instead, a database connection must be established first and then they must be required manually. This is due to a limitation of the design of Sequel::Model: Before loading a model class, a database connection must exist.

Clone this wiki locally