- add apartment to gemfile
- run initializer to generate config/apartment.rb
- Create our Event model (which maps to schemas)
- before_validate: create self.schema that uses .parameterize.underscore from self.name on event model
- after_create: create new apartment tenant on the event model
- Set up the config to ignore a few of our models that are public
- hard code the config to select a single event schema, for now
- migrate over all the data:
scans = Scan.all
Apartment::Tenant.switch!('old-event')
scans.each{ |s| Scan.create(s.attributes) }
that was it.