Sha256: 2fdd0e8702f511724f5b507bf372b8df856034288123d9e9e8a131ec42ca3806
Contents?: true
Size: 421 Bytes
Versions: 3
Compression:
Stored size: 421 Bytes
Contents
class Baza::Driver::Mysql::ForeignKey < Baza::ForeignKey def initialize(args) @db = args.fetch(:db) data = args.fetch(:data) @column_name = data.fetch(:COLUMN_NAME) @name = data.fetch(:CONSTRAINT_NAME) @table_name = data.fetch(:TABLE_NAME) end def drop @db.query(" ALTER TABLE #{@db.quote_table(table_name)} DROP FOREIGN KEY #{@db.quote_table(name)} ") true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.38 | lib/baza/driver/mysql/foreign_key.rb |
baza-0.0.37 | lib/baza/driver/mysql/foreign_key.rb |
baza-0.0.36 | lib/baza/driver/mysql/foreign_key.rb |