lib/bivouac/template/generate/migrate.rb in bivouac-0.0.4 vs lib/bivouac/template/generate/migrate.rb in bivouac-0.0.5
- old
+ new
@@ -1,8 +1,9 @@
module <%= @generation_app_name %>::Models
class Create<%= @generation_class_name %> < V 1.0
def self.up
create_table :<%= @generation_table_name %> do |t|
+ t.column :id, :integer, :null => false
# ...
end
end
def self.down
drop_table :<%= @generation_table_name %>
\ No newline at end of file