diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-21 12:00:02 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-21 12:00:02 +0200 |
commit | 10fd0217894fbdf600f3ea6cf080598ce0569809 (patch) | |
tree | 6624ddf2b9b790096fb4e5a2dce0339c52f5283c /railties/lib/generators/rails/migration | |
parent | c90419d4f4a77e538707f67ea2ab22acdaa92d46 (diff) | |
download | rails-10fd0217894fbdf600f3ea6cf080598ce0569809.tar.gz rails-10fd0217894fbdf600f3ea6cf080598ce0569809.tar.bz2 rails-10fd0217894fbdf600f3ea6cf080598ce0569809.zip |
Change attributes default type to array to allow order to be preserved.
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 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 |