Sha256: a6b1da8455e1989da25211c95b9a237ea3111872784fcf50ce18f60f8e8d7cec

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

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

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::Numericality
      include Rein::Constraint::Presence
      include Rein::Type::Enum
      include Rein::View
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rein-2.0.0 lib/rein.rb