module ArCheckedMigration::Migrations
Public Class Methods
table_exists?(table)
click to toggle source
# File lib/ar_checked_migration/status.rb, line 38 def self.table_exists?(table) ActiveRecord::Base.connection.table_exists?(table) end
up(table)
click to toggle source
# File lib/ar_checked_migration/status.rb, line 42 def self.up(table) ActiveRecord::Base.connection.select_values(<<-SQL SELECT version FROM #{table} SQL ) end