Sha256: 0320cfdc4dada46b6168576e211a60ae55b1493ef220082f0126541bc17edcc1
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
RSpec.describe ROM::SQL, '.migration', :postgres do include_context 'database setup' before do inferrable_relations.concat %i(dragons schema_migrations) end before { conf } it 'creates a migration for a specific gateway' do migration = ROM::SQL.migration do change do create_table :dragons do primary_key :id column :name, String end end end migration.apply(conn, :up) expect(conn.table_exists?(:dragons)).to be(true) end end
Version data entries
8 entries across 8 versions & 1 rubygems