Sha256: 44ca349f6375bc2327a01ef572946b1b5736d1ee95c4cd04c43e4d4d5aa1e86b
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
class <%= migration_class_name %> < GroongaClientModel::Migration def change create_table :<%= table_name %><%= create_table_options(" create_table ".size) %> do |t| <% target_attributes.each do |attribute| -%> t.<%= normalize_attribute_type(attribute.type) %> :<%= attribute.name %><%= attribute.inject_options %> <% end -%> <% if options[:timestamps] -%> t.timestamps <% end -%> end end end
Version data entries
2 entries across 2 versions & 1 rubygems