Sha256: 0050fa8558e96fd892eebdb1dc78cc69239bf16bf0604de1d9a02c91a1ffb108
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
<%= object.class %>.connection.execute("ALTER TABLE <%= object.class.table_name %> DISABLE TRIGGER ALL;") <%= object.class %>.new(<%= attributes_str.join(', ') %>).save!(validate: false) <%= object.class %>.connection.execute("ALTER TABLE <%= object.class.table_name %> ENABLE TRIGGER ALL;")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
separatum-0.1.0 | lib/separatum/exporters/active_record_code/object.rb.erb |