Sha256: 52fa070f32b59174f3280e23a7f768439626cbf85661e982ece50ad0f817dfb9
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
class <%= model_name %> < Sequel::Model(:<%= table_name %>) end # Use this section to seed your database with constant values. # It can safely be removed if unneeded. module Hanami::Sequel::Seed def self.<%= table_name %> <%= model_name %>.import(<%= model_name %>.columns, [ # place your data here, one array per tuple, e.g. # [ 1, 'left' ], # [ 2, 'right' ] ]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanami-sequel-1.1.1 | lib/hanami/sequel/templates/model-sequel.erb |
hanami-sequel-1.1.0.1 | lib/hanami/sequel/templates/model-sequel.erb |