flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
60 stars 22 forks source link

Generate models and migrations based on schema #6

Closed dorner closed 4 years ago

dorner commented 5 years ago

This is for the use case where we use Deimos essentially as a database sink via ActiveRecordConsumer.

It would be super neat if we could just feed Deimos a schema and tell it to create Rails migrations, models and ActiveRecordConsumers for it. Devs could go in and make changes to them, but the defaults would be there for them.

Note that I do not want to do it the other way around because schemas should be carefully created and not just based on whatever's in the database.