repo.or.cz
/
merb_radiant.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Renamed helpers to correspond to renamed Controller classes.
[merb_radiant.git]
/
lib
/
generators
/
extension_model
/
templates
/
.svn
/
text-base
/
migration.rb.svn-base
blob
2a305a6a9d7b1a47c79336e4b329b791e4e02bd1
1
class <%= migration_name %> < ActiveRecord::Migration
2
def self.up
3
create_table :<%= table_name %> do |t|
4
<% for attribute in attributes -%>
5
t.column :<%= attribute.name %>, :<%= attribute.type %>
6
<% end -%>
7
end
8
end
9
10
def self.down
11
drop_table :<%= table_name %>
12
end
13
end