lib/bivouac/template/generate/migrate.rb in bivouac-0.1.6 vs lib/bivouac/template/generate/migrate.rb in bivouac-0.2.0

- old
+ new

@@ -1,14 +1,21 @@ -module <%= @generation_app_name %>::Models - class Create<%= @generation_class_name %> < V <%= @new_version %> +# +# Project <%= @app.environment.appname %> +# +# Created using bivouac on <%= Time.now %>. +# Copyright (c) <%= Time.now.year %> __My__. All rights reserved. +# + +module <%= @app.environment.appname %>::Models + class Create<%= @model_class_name %> < V <%= @new_version %> def self.up - create_table :<%= @generation_table_name %> do |t| + create_table :<%= @model_table_name %> do |t| t.column :id, :integer, :null => false # ... end end def self.down - drop_table :<%= @generation_table_name %> + drop_table :<%= @model_table_name %> end end end \ No newline at end of file