Changeset 805
- Timestamp:
- 10/31/07 01:10:38 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/merb_active_record/merb_generators/ar_migration/templates/new_migration.erb
r803 r805 1 1 class <%= class_name.snake_case.camel_case %> < ActiveRecord::Migration 2 def up2 def self.up 3 3 <%= "create_table :#{table_name} do |t|" if table_name %> 4 4 <% for attribute in table_attributes -%> … … 8 8 end 9 9 10 def down10 def self.down 11 11 <% if table_name -%> 12 12 drop_table :<%= table_name %>
