Skip to content
Browse files

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
  • Loading branch information...
1 parent ff881c7 commit b059ceb94f96b3d00ed9a8d8dff5728de050c0b2 @dhh dhh committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails_generator/generators/components/model/templates/migration.rb
View
6 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

0 comments on commit b059ceb

Please sign in to comment.
Something went wrong with that request. Please try again.