diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 13:55:39 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-01-28 13:55:39 +0000 |
commit | 5224b62ae360d35891e562918a438ab4761ecf1f (patch) | |
tree | ed5ce4c2ad45fdd6dc4c95ba28d6fa5db6d92925 /railties/lib/rails_generator/generators/components/resource/templates/migration.rb | |
parent | 7ce675352653dfd1a538bee82d67af99b442047a (diff) | |
download | rails-5224b62ae360d35891e562918a438ab4761ecf1f.tar.gz rails-5224b62ae360d35891e562918a438ab4761ecf1f.tar.bz2 rails-5224b62ae360d35891e562918a438ab4761ecf1f.zip |
Resource generator depends on the model generator rather than duplicating it. Closes #7269.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/resource/templates/migration.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/resource/templates/migration.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/lib/rails_generator/generators/components/resource/templates/migration.rb b/railties/lib/rails_generator/generators/components/resource/templates/migration.rb index 2a305a6a9d..e69de29bb2 100644 --- a/railties/lib/rails_generator/generators/components/resource/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/resource/templates/migration.rb @@ -1,13 +0,0 @@ -class <%= migration_name %> < ActiveRecord::Migration - def self.up - create_table :<%= table_name %> do |t| -<% for attribute in attributes -%> - t.column :<%= attribute.name %>, :<%= attribute.type %> -<% end -%> - end - end - - def self.down - drop_table :<%= table_name %> - end -end |