Sha256: 4711688d1dc41ed0e43b8bdf8035bce0e0bf6bb68d5cc841c5bae62809a85c6e

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

require "active_record"
require "active_record/connection_adapters/abstract_mysql_adapter"

require "rein/constraint/options"
require "rein/constraint/primary_key"
require "rein/constraint/foreign_key"
require "rein/constraint/inclusion"
require "rein/constraint/null"
require "rein/constraint/numericality"
require "rein/constraint/presence"
require "rein/type/enum"
require "rein/view"
require "rein/schema"

module ActiveRecord
  module ConnectionAdapters # :nodoc:
    class MysqlAdapter < AbstractAdapter # :nodoc:
      include Rein::Constraint::PrimaryKey
      include Rein::Constraint::ForeignKey
      include Rein::View
    end

    class Mysql2Adapter < AbstractMysqlAdapter # :nodoc:
      include Rein::Constraint::PrimaryKey
      include Rein::Constraint::ForeignKey
      include Rein::View
    end

    class PostgreSQLAdapter < AbstractAdapter # :nodoc:
      include Rein::Constraint::PrimaryKey
      include Rein::Constraint::ForeignKey
      include Rein::Constraint::Inclusion
      include Rein::Constraint::Null
      include Rein::Constraint::Numericality
      include Rein::Constraint::Presence
      include Rein::Type::Enum
      include Rein::View
      include Rein::Schema
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rein-2.1.0 lib/rein.rb