diff options
-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 |