Sha256: 593542191d73f97db0ed93cb16a39580b756bab97a49ed198b68be9f6ac8b7d6
Contents?: true
Size: 340 Bytes
Versions: 9
Compression:
Stored size: 340 Bytes
Contents
class Create<%= @data[:classname] %> < ActiveRecord::Migration[<%= @data[:ar_version] %>] def self.up create_table :<%= @data[:plural] %> do |t| <% @data[:ary].each do |x| %> t.column :<%= x.name %>, :<%= x.type %>, :null => <%= x.null %> <% end %> end end def self.down drop_table :<%= @data[:plural] %> end end
Version data entries
9 entries across 9 versions & 1 rubygems