diff options
Diffstat (limited to 'railties/lib/generators/active_record')
-rw-r--r-- | railties/lib/generators/active_record/migration/migration_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/generators/active_record/model/model_generator.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/active_record/migration/migration_generator.rb b/railties/lib/generators/active_record/migration/migration_generator.rb index 95cc34ba42..7939977f72 100644 --- a/railties/lib/generators/active_record/migration/migration_generator.rb +++ b/railties/lib/generators/active_record/migration/migration_generator.rb @@ -3,7 +3,7 @@ require 'generators/active_record' module ActiveRecord module Generators class MigrationGenerator < Base - argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" def create_migration_file set_local_assigns! diff --git a/railties/lib/generators/active_record/model/model_generator.rb b/railties/lib/generators/active_record/model/model_generator.rb index d337ca4eec..54187aede0 100644 --- a/railties/lib/generators/active_record/model/model_generator.rb +++ b/railties/lib/generators/active_record/model/model_generator.rb @@ -3,7 +3,7 @@ require 'generators/active_record' module ActiveRecord module Generators class ModelGenerator < Base - argument :attributes, :type => :hash, :default => {}, :banner => "field:type field:type" + argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" check_class_collision |