search for: magicmodels

Displaying 4 results from an estimated 4 matches for "magicmodels".

2006 Jul 27
3
setting up model for existing database
I thought I sent this email (below) to the rails list, but can see no trace of it today! Apologies if it did indeed appear yesterday.... I have an existing database (Microsoft SQL). I know how to specify the connection to the database, but how can I generate or write a model that correpsonds to a table or tables that already exist in the database? Just by specifying things in a new model that
2007 Feb 16
4
Ideas for rails
Here are a few suggestions, wondering what others thought: When you generate a model for a DB table, it would be nice if the model.rb contained the DB schema (kind of like # commented out schema) right in the model file. This would make reference WAY easier and put all of the DB stuff in one easy file. Thanks. also nice, of course, woudl be for rails to try and ''guess'' the
2006 Aug 07
28
Dr Nic’s Magic Models
...appear from nowhere. No class definition, just any old database tables you have lying around the home is all you?ll need to perform this trick! No cover charge. No free steak knives. No heavy lifting involved. Installation, DIY magical instructions, and a world of mystery awaits you at: http://magicmodels.rubyforge.org Dr Nic: http://drnicwilliams.com -- Posted via http://www.ruby-forum.com/.
2006 Nov 07
19
DrySQL
DrySQL is a plug-in that extends ActiveRecord to provide a complete DRY solution for Object-Relational Mapping. You''ve defined columns, constraints, relationships, and keys on your DB. With DrySQL you don''t need to re-define any of these things in your Ruby code. If you have tables, keys, and columns that don''t follow the Rails naming conventions, have a complex