Sha256: 0b5971fc79018c2871f6506043b0afbf84ca35fe11552b2915867e8eb4cffc66

Contents?: true

Size: 252 Bytes

Versions: 2

Compression:

Stored size: 252 Bytes

Contents

class Create<%= @name.capitalize.pluralize %> < ActiveRecord::Migration
	def change
		create table <%= @name.pluralize.to_sym %> do |t|
			<% @attrs.each do |v| %>
			t.<%= v["type"] %> <%= ":#{v['name']}" %>
			<% end %>
			t.timestamps
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
freeRangeEggs-0.0.5.beta lib/templates/migration.erb
freeRangeEggs-0.0.4.beta lib/templates/migration.erb