Commit b343396f02b42f5973b743a4a0a0ac2cbd9af920
1 parent
7900c4db
Exists in
master
and in
22 other branches
ActionItem629: creating a default environment
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2450 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/tasks/populate.rake
... | ... | @@ -6,6 +6,7 @@ include GetText |
6 | 6 | namespace :db do |
7 | 7 | desc "Populate database with basic required data to run application" |
8 | 8 | task :populate do |
9 | + Environment.create!(:name => 'Noosfero', :is_default => true) unless (Environment.default) | |
9 | 10 | create_roles |
10 | 11 | new_permissions |
11 | 12 | end | ... | ... |