Legacy tables

4 views
Skip to first unread message

paron

unread,
May 8, 2009, 11:12:22 AM5/8/09
to Hobo Users
I don't know if anyone else here has tried the "restfulx" framework.
It is for hooking a flex frontend to a rails/xml backend.

It has some very slick features, but the one I thought might be useful
in Hobo is rake db:schema:to_yaml

When I ran it on my "Agility" tut, it gave me model.yml:

user:
- crypted_password: string
- salt: string
- remember_token: string
- remember_token_expires_at: datetime
- name: string
- email_address: string
- administrator: boolean
- state: string
- key_timestamp: datetime
- has_many: [task_assignments, project_memberships]

project:
- name: string
- belongs_to: [owner]
- has_many: [stories, project_memberships]

task:
- description: string
- position: integer
- belongs_to: [story]
- has_many: [task_assignments]

task_assignment:
- belongs_to: [user, task]

story_status:
- name: string

story:
- title: string
- body: text
- belongs_to: [project, status]
- has_many: [tasks]

project_membership:
- belongs_to: [project, user]

Now, if I made a generator for Hobo that read model.yml, it could make
a pretty decent swipe at generating the app, including the
associations (except the has_many, :throughs) Then the migrations
could be used for changes to the db.

Or, is there already a better way?

Ron

Tom Locke

unread,
May 8, 2009, 12:19:32 PM5/8/09
to hobo...@googlegroups.com
> Or, is there already a better way?

There is. But I'm limited to making cryptic hints about it at this
stage : )

Watch this space

Tom

paron

unread,
May 8, 2009, 12:50:10 PM5/8/09
to Hobo Users
Well, even a cryptic hint lets me off writing the generator, so I'm
satisfied. For now.

Ron

Owen

unread,
Jun 13, 2009, 12:17:17 PM6/13/09
to Hobo Users
I feel like a kid waiting for Xmas morning...: -)

kevinpfromnm

unread,
Jun 13, 2009, 6:01:44 PM6/13/09
to Hobo Users
It's not a good sign that it's June and you're waiting for
christmas... though maybe Tom will take pity and leak another hint
before you snap. :P
Reply all
Reply to author
Forward
0 new messages