Sha256: ba86dc46153ca6d1f850b008220efdcb92ae033bbe4ed8f48403a13d2837886a
Contents?: true
Size: 232 Bytes
Versions: 20
Compression:
Stored size: 232 Bytes
Contents
module DdlHelper def with_example_table(connection, table_name, definition = nil) connection.execute("CREATE TABLE #{table_name}(#{definition})") yield ensure connection.execute("DROP TABLE #{table_name}") end end
Version data entries
20 entries across 20 versions & 3 rubygems