Sha256: 385096864e371f831763888f1eef62d45ad80b8116274ebd0eeaf90b1acac2d3
Contents?: true
Size: 466 Bytes
Versions: 5
Compression:
Stored size: 466 Bytes
Contents
# For details on Sequel migrations see # http://sequel.rubyforge.org/ # http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html#M000607 class <%= class_name %> < Sequel::Migration def up <% if model -%> create_table :<%= table_name -%> do primary_key :id <% attributes.each do |name, type| -%> <%= type %> :<%= name %> <% end -%> end <% end -%> end def down <% if model -%> drop_table :<%= table_name %> <% end -%> end end
Version data entries
5 entries across 5 versions & 2 rubygems