Sha256: 978c2689d8dbdf3e20b2f5e3c4428454becb372e9af4bcf1d16a472a6c86870f

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 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 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 Rein::View
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rein-0.7.1 lib/rein.rb
rein-0.7.0 lib/rein.rb