lib/postspec/render.rb in postspec-0.2.3 vs lib/postspec/render.rb in postspec-0.2.4
- old
+ new
@@ -63,10 +63,10 @@
# Create readonly seed triggers. Readonly triggers are used to raise an
# error when seed data are updated, deleted, or truncated. They all call
# the common postspec.readonly_failure() function that raises a Postgres
# exception
def create_seed_triggers(uids)
- constrain uids, String => [Integer, NilClass]
+ constrain uids, { String => [Integer, NilClass] }
result = []
uids.map { |uid, id|
bud_trigger = "#{uid}.#{SEED_BUD_TRIGGER_NAME}()"
bud_sql = <<~EOS1
create trigger #{SEED_BUD_TRIGGER_NAME}