cequel/cequel

View on GitHub
templates/record.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- encoding : utf-8 -*-
class <%= class_name %>
  include Cequel::Record

  key :id, :uuid, auto: true
  <%- attributes.each do |attribute| -%>
  column <%= attribute.name.to_sym.inspect %>, <%= attribute.type.to_sym.inspect %><% if attribute.has_index? %>, index: true<% end %>
  <%- end -%>
end