Skip to content

Commit

Permalink
Clarifies db can be set up from structure.sql also
Browse files Browse the repository at this point in the history
I added that *structure.sql* file can be used when *db:reset* is run.

*db:reset* tasks states *db:reset* loads database from *db/schema.rb*
or *db/structure.sql* depending on the configuration (although
*db/schema.rb* is the default), hence the change.
  • Loading branch information
AnnaErshova committed Oct 15, 2015
1 parent b6cf69e commit 0166adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_migrations.md
Expand Up @@ -789,7 +789,7 @@ The `rake db:reset` task will drop the database and set it up again. This is
functionally equivalent to `rake db:drop db:setup`.

NOTE: This is not the same as running all the migrations. It will only use the
contents of the current `schema.rb` file. If a migration can't be rolled back,
contents of the current `schema.rb` or `structure.rb` file. If a migration can't be rolled back,
`rake db:reset` may not help you. To find out more about dumping the schema see
[Schema Dumping and You](#schema-dumping-and-you) section.

Expand Down

0 comments on commit 0166adc

Please sign in to comment.