diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-04 20:08:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-04 20:08:01 +0000 |
commit | b059ceb94f96b3d00ed9a8d8dff5728de050c0b2 (patch) | |
tree | 4d2b48ec9b8c31cb13659333f491427e411309b2 /railties/lib/rails_generator/generators/components/model | |
parent | ff881c7f8b1ffd855c09cabcd2c9b06aea4e850d (diff) | |
download | rails-b059ceb94f96b3d00ed9a8d8dff5728de050c0b2.tar.gz rails-b059ceb94f96b3d00ed9a8d8dff5728de050c0b2.tar.bz2 rails-b059ceb94f96b3d00ed9a8d8dff5728de050c0b2.zip |
Migrations should use symbols now that the schema dumper is switching to that as well [Suggested by Robby Russel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/templates/migration.rb | 6 |
1 files changed, 3 insertions, 3 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 023c07d2f6..a6954ebd85 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/model/templates/migration.rb @@ -1,11 +1,11 @@ class <%= migration_name %> < ActiveRecord::Migration def self.up - create_table "<%= table_name %>" do |t| - # t.column "name", :string + create_table :<%= table_name %> do |t| + # t.column :name, :string end end def self.down - drop_table "<%= table_name %>" + drop_table :<%= table_name %> end end |