Skip to content

@pvh /gist:2579956
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
module Shogun
module Once
class OnceRecord < Sequel::Model
Sequel.extension :pg_array
DB.extend Sequel::Postgres::PGArray::DatabaseMethods
unrestrict_primary_key
end
def self.ever(*arguments, &blk)
OnceRecord.create(signature: signature(arguments), arguments: arguments.pg_array)
end
def self.signature(*arguments)
signature = arguments.join(' ')
end
end
end
@pvh
Owner
pvh commented

ERROR: missing dimension value at character 73
STATEMENT: INSERT INTO "once_records" ("signature", "arguments") VALUES ('sample', '["sample"]') RETURNING *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.