Sha256: 5bef5144cb348a61067dde3b41488febb35c2e3e4c81a5f344753b877f304917

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

module Rein
  module Constraint
  end
end

RC = Rein::Constraint

require 'active_record'
require 'active_support/core_ext/hash'

require 'rein/constraint/foreign_key'
require 'rein/constraint/primary_key'
require 'rein/constraint/inclusion'
require 'rein/constraint/numericality'
require 'rein/view'

module ActiveRecord::ConnectionAdapters
  class MysqlAdapter < AbstractAdapter
    include RC::PrimaryKey
    include RC::ForeignKey
    include Rein::View
  end

  class PostgreSQLAdapter < AbstractAdapter
    include RC::PrimaryKey
    include RC::ForeignKey
    include RC::Inclusion
    include RC::Numericality
    include Rein::View
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rein-0.6.0 lib/rein.rb