Skip to content

Commit

Permalink
Only do auto_upgrade! magic when in dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsardone committed Nov 4, 2009
1 parent 37a2055 commit 8967566
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions password_store.rb
Expand Up @@ -65,8 +65,10 @@ class Project
has n, :servers, :through => Resource
end

# Create or upgrade all tables at once, like magic
DataMapper.auto_upgrade!
configure :development do
# Create or upgrade all tables at once, like magic
DataMapper.auto_upgrade!
end

# set utf-8 for outgoing
before do
Expand Down

0 comments on commit 8967566

Please sign in to comment.