Sha256: 5a13810d9466c6881113c598006c74eb1c1913cf3a48e821d52e73561f35a859

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

module <%= @generation_app_name %>::Models
  class Create<%= @generation_class_name %> < V <%= @new_version %>
    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 %>
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bivouac-0.0.9 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.0 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.1 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.5 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.3 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.2 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.4 lib/bivouac/template/generate/migrate.rb
bivouac-0.1.6 lib/bivouac/template/generate/migrate.rb