Hi all,
I tried to build a brick for test purposes.
I dropped the "gardening" and "toto" directories into a "bricks" directory in my zena application (myapp/bricks)
I found that for the migration to take place, the migration file must be in a zena/migrate/ subdirectory of the brick (not migration/ directory). For example:
myapp/bricks/toto/zena/migrate/001_create_toto.rb
now running
rake zena:migrate RAILS_ENV='production'
actually creates the new database tables, and
rake zena:migrate VERSION=0 BRICK=toto
drops the table.
The problem now is that I can't see any new class in the management/classes section of the site. I was expecting to get class Toto under Page.
I tried "clear cache" and "rebuild" without success.
The models are in myapp/bricks/toto/models/, is this the right directory?
Is there anything else to do after the migration or did I miss anything?
I'm still with Zena 1.2.7
Thanks for any help!