diff options
Diffstat (limited to 'railties/lib/rails/generators/active_record/model/templates')
-rw-r--r-- | railties/lib/rails/generators/active_record/model/templates/migration.rb | 16 | ||||
-rw-r--r-- | railties/lib/rails/generators/active_record/model/templates/model.rb | 5 |
2 files changed, 0 insertions, 21 deletions
diff --git a/railties/lib/rails/generators/active_record/model/templates/migration.rb b/railties/lib/rails/generators/active_record/model/templates/migration.rb deleted file mode 100644 index 1f68487304..0000000000 --- a/railties/lib/rails/generators/active_record/model/templates/migration.rb +++ /dev/null @@ -1,16 +0,0 @@ -class <%= migration_class_name %> < ActiveRecord::Migration - def self.up - create_table :<%= table_name %> do |t| -<% for attribute in attributes -%> - t.<%= attribute.type %> :<%= attribute.name %> -<% end -%> -<% if options[:timestamps] %> - t.timestamps -<% end -%> - end - end - - def self.down - drop_table :<%= table_name %> - end -end diff --git a/railties/lib/rails/generators/active_record/model/templates/model.rb b/railties/lib/rails/generators/active_record/model/templates/model.rb deleted file mode 100644 index 21ae29e9f2..0000000000 --- a/railties/lib/rails/generators/active_record/model/templates/model.rb +++ /dev/null @@ -1,5 +0,0 @@ -class <%= class_name %> < <%= parent_class_name.classify %> -<% attributes.select {|attr| attr.reference? }.each do |attribute| -%> - belongs_to :<%= attribute.name %> -<% end -%> -end |