what's the difference between class Color; def Color.each; end and class Color; def each; end. From memory, the forme is a instance methods that we can use after including enumerable and the later is a class methods;
cnk: I work with an old database and they didn't bother to put the foreign keys on some of the tables.... the auto generated support provided for associations is useless
cnk: really? I must be missing something then - I couldn't get it to work properly I assumed the ORM didn't make the connection - I was even tempted to look into the has_many codebase
For those not familiar with Chewey - In order to create an index file we place it under the folder 'app/chewey' and the file inherit from Chewy::Index as such class StoreIndex < Chewy::Index; end. The issue I'm having is that I have a file corporate_persons_index.rb with the following content CorporatePersonsIndex < Chewy::Index;end, but the rails console returns name error unitialized contant
I added config.active_record.schema_format = :sql to application rb but the file db/structur.rb is not generated, schema.rb is overwritten instead. I'm using tiny_tds and sqlserver_adaptater. any thoughts?