##// END OF EJS Templates
Renamed the .rb files in the plugin_generator to end in .erb. The .rb was...
Renamed the .rb files in the plugin_generator to end in .erb. The .rb was causing rdoc to try to document them and fail. * Updated the generator's manifest to use the new files * Renamed template README to README.rdoc #2011 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1949 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1785:f7acdd1afde3
r1947:bcde2f4dce7a
Show More
migration.rb
13 lines | 294 B | text/x-ruby | RubyLexer
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