Skip to content

Commit

Permalink
Nicer database migration
Browse files Browse the repository at this point in the history
  • Loading branch information
foca committed Nov 14, 2008
1 parent c197a9b commit 2bd38c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions bin/integrity
Expand Up @@ -24,9 +24,7 @@ class WithIntegrity < Thor
def create_db(config)
Integrity.config = config
Integrity.new
Integrity::Project.auto_migrate!
Integrity::Build.auto_migrate!
Integrity::Notifier.auto_migrate!
DataMapper.auto_migrate!
end

private
Expand Down
4 changes: 1 addition & 3 deletions spec/spec_helper.rb
Expand Up @@ -63,9 +63,7 @@ def self.included(mod)

def setup_database!
DataMapper.setup(:default, 'sqlite3::memory:')
Integrity::Project.auto_migrate!
Integrity::Build.auto_migrate!
Integrity::Notifier.auto_migrate!
DataMapper.auto_migrate!
end
end

Expand Down

0 comments on commit 2bd38c9

Please sign in to comment.