search for: model_generator

Displaying 3 results from an estimated 3 matches for "model_generator".

2013 Mar 14
7
No Migration Files are created
I''ve been working with Rails for 3 Months now, but haven''t experienced this problem until now. I''m currently working through Micharl Hartls Tutorial and everything worked fine so far, but suddenly (chapter 11) I can nolonger create Migration Files. when entering "rails g model Name field1:type" I don''t get the usual "create db/migrate...."
2011 May 06
1
scaffold didn't work
...ies-3.0.7/lib/rails/ generators/named_base.rb:97:in `pluralize_table_names?'' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/ generators/named_base.rb:44:in `table_name'' from /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.7/lib/rails/ generators/active_record/model/model_generator.rb:16:in `create_migration_file'' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb: 22:in `send'' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/task.rb: 22:in `run'' from /usr/lib/ruby/gems/1.8/gems/thor-0.14.6/lib/thor/ invocation.rb:118:in...
2006 Sep 22
2
Editing the migration template
Hi. I''d like to edit the generated template in AR where tables are created. for example, this file is created when generating a new model or migration: class CreateModel < ActiveRecord::Migration def self.up create_table :models do |t| # t.column :type, I''d like to edit the above so it''ll generate this: class CreateModel <