Hi all,
Can anyone please tell me how I create an extension that requires it's own
db table? Based on the extension tutorial at
http://guides.spreecommerce.com/developer/extensions_tutorial.html it looks
like I should create the migration in the spree store and it will be run
when I run the install generator. However, I don't see my new 'offers'
table in the db and my site page gives the following error:
NameError in Spree::HomeController#offers
uninitialized constant Spree::Offer
Also - I need to add a row to this table but do I run rails console from
the store directory, or from the extension directory? The tutorial is
unclear.
Thanks.