Sha256: edeea129c3b4faa53e3a5e727769e5c298ca399b4982500d47cbb0bae8433088
Contents?: true
Size: 417 Bytes
Versions: 3
Compression:
Stored size: 417 Bytes
Contents
class Baza::Driver::Pg::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 CONSTRAINT #{@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/pg/foreign_key.rb |
baza-0.0.37 | lib/baza/driver/pg/foreign_key.rb |
baza-0.0.36 | lib/baza/driver/pg/foreign_key.rb |