Module: ArCheckedMigration::Migrations
- Defined in:
- lib/ar_checked_migration/status.rb
Class Method Summary collapse
Class Method Details
.table_exists?(table) ⇒ Boolean
38 39 40 |
# File 'lib/ar_checked_migration/status.rb', line 38 def self.table_exists?(table) ActiveRecord::Base.connection.table_exists?(table) end |
.up(table) ⇒ Object
42 43 44 45 46 47 |
# 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 |