diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 13:30:07 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:39 +0200 |
commit | 9541977e049d236564f34cf58660b61e154ccb32 (patch) | |
tree | 46a4828844eea7f3a0ff6eef69f938fcd0af54b7 /railties/lib/generators/rails/migration | |
parent | bf672a12a3726a74a436746f4a82fefd9527686c (diff) | |
download | rails-9541977e049d236564f34cf58660b61e154ccb32.tar.gz rails-9541977e049d236564f34cf58660b61e154ccb32.tar.bz2 rails-9541977e049d236564f34cf58660b61e154ccb32.zip |
Make scaffold controller generate agnostic code and mark some hooks as required.
Diffstat (limited to 'railties/lib/generators/rails/migration')
-rw-r--r-- | railties/lib/generators/rails/migration/migration_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/migration/migration_generator.rb b/railties/lib/generators/rails/migration/migration_generator.rb index 29d1238072..4e2db5e441 100644 --- a/railties/lib/generators/rails/migration/migration_generator.rb +++ b/railties/lib/generators/rails/migration/migration_generator.rb @@ -2,7 +2,7 @@ module Rails module Generators class MigrationGenerator < NamedBase #metagenerator argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" - hook_for :orm + hook_for :orm, :required => true end end end |