diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-25 15:15:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-06-25 15:15:20 +0000 |
commit | 7cc67eb6d76eff9762c2a92866769b43ff5009a5 (patch) | |
tree | cbcdc2f351792be96df0e74ab49b65c48ada843c /railties/lib/rails_generator | |
parent | 91384dd691bebfaafcd06a097ea3497512227f47 (diff) | |
download | rails-7cc67eb6d76eff9762c2a92866769b43ff5009a5.tar.gz rails-7cc67eb6d76eff9762c2a92866769b43ff5009a5.tar.bz2 rails-7cc67eb6d76eff9762c2a92866769b43ff5009a5.zip |
Added db:version to get the current schema number [via Tim Bray]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/templates/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/templates/migration.rb b/railties/lib/rails_generator/generators/components/model/templates/migration.rb index c942cccdbf..a834c6bf98 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/model/templates/migration.rb @@ -3,7 +3,7 @@ class <%= migration_name %> < ActiveRecord::Migration create_table :<%= table_name %> do |t| <% for attribute in attributes -%> t.<%= attribute.type %> :<%= attribute.name %> -<% end -%> +<% end %> t.timestamps end end |