##// END OF EJS Templates
add local cache repository for speed purpose (subversion) or for browsing a external repository...
add local cache repository for speed purpose (subversion) or for browsing a external repository for SCM that can handle only local copy (git). git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1899 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1785:f7acdd1afde3
r1897:89b8bf3dc51d
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