Sha256: cdc8fcab7de5f8ed132f53288e21c73e1855ddff07102c17ce3fc847b9620371

Contents?: true

Size: 1018 Bytes

Versions: 2

Compression:

Stored size: 1018 Bytes

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/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::View
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rein-1.1.0 lib/rein.rb
rein-1.0.0 lib/rein.rb