Sha256: 733f092f91c38b9fb3965c481f69983ae5df4672eea884b93f651e773cf119d2

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

module Rein
  # This module contains methods for creating/dropping schemas.
  module Schema
    def create_schema(name)
      sql = "CREATE SCHEMA #{name}"
      execute(sql)
    end

    def drop_schema(name)
      sql = "DROP SCHEMA #{name}"
      execute(sql)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rein-2.1.0 lib/rein/schema.rb