Class: Shoestring::Migration

Inherits:
Base
  • Object
show all
Defined in:
lib/shoestring/migration.rb

Instance Method Summary collapse

Methods inherited from Base

check

Instance Method Details

#checkObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/shoestring/migration.rb', line 7

def check
  Shoestring::Generic.check('Database Migrations') do
    status = db_status
    if $?.success?
      check_schema
      true
    else
      setup_database(status)
    end
  end
end