Sha256: 267061c0f4afa4fbbb3e1c1b6abbef7f3d092600d7011466bf0554932b4259b6
Contents?: true
Size: 406 Bytes
Versions: 69
Compression:
Stored size: 406 Bytes
Contents
require 'tasks/database' module MigrationHelpers def create table_name, params, id_column_name = :id database[table_name].insert(params); database[table_name].order(id_column_name).last if id_column_name end def clean table_name database[table_name].delete rescue puts "Error cleaning #{table_name} #{$!}" end def database @database ||= PactBroker::Database.database end end
Version data entries
69 entries across 69 versions & 1 rubygems