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

Version Path
arxutils_sqlite3-0.1.64 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.63 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.61 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.60 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.59 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.58 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.57 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.56 lib/template/acrecord/noitem.tmpl
arxutils_sqlite3-0.1.55 lib/template/acrecord/noitem.tmpl