Sha256: 6ba8282cd314a0ad31de3d3f96dae10ed35f5c9dd34ba2d2bd04ee49533f14f6
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
require 'ardb/adapter/base' module Ardb::Adapter class Mysql < Base def foreign_key_add_sql "ALTER TABLE :from_table"\ " ADD CONSTRAINT :name"\ " FOREIGN KEY (:from_column)"\ " REFERENCES :to_table (:to_column)" end def foreign_key_drop_sql "ALTER TABLE :from_table"\ " DROP FOREIGN KEY :name" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ardb-0.28.3 | lib/ardb/adapter/mysql.rb |
ardb-0.28.2 | lib/ardb/adapter/mysql.rb |
ardb-0.28.1 | lib/ardb/adapter/mysql.rb |
ardb-0.28.0 | lib/ardb/adapter/mysql.rb |