Sha256: cabae98202982b02fac9594ab9e2f34d031d0362142c4615abb536aeec9d8755
Contents?: true
Size: 489 Bytes
Versions: 9
Compression:
Stored size: 489 Bytes
Contents
RSpec.describe ROM::SQL, '.migration', :postgres, skip_tables: true do include_context 'database setup' before do conf conn.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(conn, :up) expect(conn.table_exists?(:dragons)).to be(true) end end
Version data entries
9 entries across 9 versions & 1 rubygems