Save to db with no table create?

Is there a tool or method to persist arbitrary objects to the db without
having to do a manual table create step?

If not, and I therefore HAVE to do work just to save , then is this a
valid sequence to persist a new class ?:

  1. put create and drop table statements in a new migration (step)
  2. define a class of same name which extends ActiveRecord (table name is
    plural), optionally not writing down the variables
  3. use OBJECTCLASSNAME.find or OBJECTCLASSNAME.save records in and out
    of db

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs