Sha256: 641dee4f12694466d82973d97e01b5b9f1feb86f523ab6b95ce032c60ea1c8ae

Contents?: true

Size: 835 Bytes

Versions: 2

Compression:

Stored size: 835 Bytes

Contents

module Rein
  module Constraint
  end
end

RC = Rein::Constraint

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

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

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

  class Mysql2Adapter < 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 RC::Presence
    include Rein::View
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rein-0.8.1 lib/rein.rb
rein-0.8.0 lib/rein.rb