Sha256: e039597413e24fd0a56bf69886e817b6e03552d92fd1a8b3066f97a1533a7419
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
class Create<%= @data[:classname] %> < ActiveRecord::Migration def self.up create_table :<%= @data[:plural] %> do |t| <% @data[:ary].each do |x| %> t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %> <% end %> t.timestamps null: false end end def self.down drop_table :<%= @data[:plural] %> end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
arxutils-0.1.38 | lib/template/base.tmpl |
arxutils-0.1.37 | lib/template/base.tmpl |
arxutils-0.1.36 | lib/template/base.tmpl |
arxutils-0.1.35 | lib/template/base.tmpl |