class MigrationValidators::Spec::Support::TableWrapper
Attributes
table_name[RW]
Public Class Methods
new(table_name, db)
click to toggle source
# File lib/migration_validators/spec/support/table_wrapper.rb, line 7 def initialize table_name, db @table_name = table_name @db = db end
Public Instance Methods
drop()
click to toggle source
# File lib/migration_validators/spec/support/table_wrapper.rb, line 12 def drop @db.drop_table(table_name) if @db.table_exists?(table_name) end
method_missing(method_name, *args)
click to toggle source
# File lib/migration_validators/spec/support/table_wrapper.rb, line 17 def method_missing method_name, *args return MigrationValidators::Spec::Support::ColumnWrapper.new(method_name, self, @db) if @db.column_exists?(table_name, method_name) old_method_missing method_name, *args end
Also aliased as: old_method_missing