class Create<%= model_name %> < ROM::Commands::Create<%= "[:#{adapter}]" %> relation :<%= relation %> register_as :create result :one # Modify input data before committing it. # before :timestamp # def timestamp(tuple) # time = Time.current # tuple.merge(created_at: time, updated_at: time) # end end