Commit df8e5a7a0b0c1470d36e0f3e5af58c6b6bc8a435

Authored by Fernanda Lopes
Committed by Antonio Terceiro
1 parent 565f4552

Fixing errors when following the instructions in HACKING file

After the 'copy a sample config file' step:

1. When attempting to migrate, the Ferret assumes that the 'articles'
table already exists, generating an error (noosfero.1.log)
# rake db:migrate

2. Deleting db/schema.rb, the migration 0024_new_permissions was
broken, because the lack of argument env_id on line 3 (noosfero.2.log)
# rm db/schema.rb
# rake db:migrate

3. It works well for loading the database schema, and then calling
db:migrate
# rake db:schema:load
# rake db:migrate
Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
HACKING
... ... @@ -32,7 +32,9 @@ commands and make sure you understand what you are doing):
32 32 cd noosfero
33 33 # copy a sample config file
34 34 cp config/database.yml.sqlite3 config/database.yml
35   - # create the database:
  35 + # create the development database
  36 + rake db:schema:load
  37 + # run pending migrations
36 38 rake db:migrate
37 39 # compile translations:
38 40 rake makemo
... ...