From b059ceb94f96b3d00ed9a8d8dff5728de050c0b2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 4 Mar 2006 20:08:01 +0000 Subject: 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 --- .../generators/components/model/templates/migration.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/lib/rails_generator/generators') 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 -- cgit v1.2.3