Commit b343396f02b42f5973b743a4a0a0ac2cbd9af920

Authored by AntonioTerceiro
1 parent 7900c4db

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 +6,7 @@ include GetText
6 namespace :db do 6 namespace :db do
7 desc "Populate database with basic required data to run application" 7 desc "Populate database with basic required data to run application"
8 task :populate do 8 task :populate do
  9 + Environment.create!(:name => 'Noosfero', :is_default => true) unless (Environment.default)
9 create_roles 10 create_roles
10 new_permissions 11 new_permissions
11 end 12 end