Sha256: f72b1c996a851262b27fb26fdb57a27646b711cb8954ea9a6c7a2dd9ec25d2ec
Contents?: true
Size: 530 Bytes
Versions: 6
Compression:
Stored size: 530 Bytes
Contents
require 'spec_helper' describe ROM::SQL, '.migration' do let(:connection) { ROM::SQL.gateway.connection } before do ROM.setup(:sql, DB_URI) connection.drop_table?(:dragons) end 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(connection, :up) expect(connection.table_exists?(:dragons)).to be(true) end end
Version data entries
6 entries across 6 versions & 1 rubygems