Sha256: 27f2db1723acca6afffa2ee4a4a0d6e2e2162e56704b4ecb2704f5f774acfe25
Contents?: true
Size: 240 Bytes
Versions: 8
Compression:
Stored size: 240 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
8 entries across 8 versions & 1 rubygems