diff options
Diffstat (limited to 'railties/lib/generators/rails')
-rw-r--r-- | railties/lib/generators/rails/migration/migration_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/generators/rails/model/model_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/migration/migration_generator.rb b/railties/lib/generators/rails/migration/migration_generator.rb index 4e2db5e441..39fa5b63b1 100644 --- a/railties/lib/generators/rails/migration/migration_generator.rb +++ b/railties/lib/generators/rails/migration/migration_generator.rb @@ -1,7 +1,7 @@ module Rails module Generators class MigrationGenerator < NamedBase #metagenerator - argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" hook_for :orm, :required => true end end diff --git a/railties/lib/generators/rails/model/model_generator.rb b/railties/lib/generators/rails/model/model_generator.rb index 189f072365..629d5eed3f 100644 --- a/railties/lib/generators/rails/model/model_generator.rb +++ b/railties/lib/generators/rails/model/model_generator.rb @@ -1,7 +1,7 @@ module Rails module Generators class ModelGenerator < NamedBase #metagenerator - argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" hook_for :orm, :required => true end end |