From d4863f30de023d0f6817afcddc114889493e6d3c Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Thu, 29 Aug 2013 11:12:57 -0500 Subject: Note functional equivalence in reset task --- guides/source/migrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source/migrations.md') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index 6100fc89c8..55bb89bd71 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -694,8 +694,8 @@ version to migrate to. ### Resetting the Database -The `rake db:reset` task will drop the database, recreate it and load the -current schema into it. +The `rake db:reset` task will drop the database and set it up again. This is +functionally eqivalent 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, -- cgit v1.2.3 From 5f08154230f69a8aee88d72e09fe088bf728f506 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Thu, 29 Aug 2013 11:18:07 -0500 Subject: Add documentation for rake db:setup task --- guides/source/migrations.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'guides/source/migrations.md') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index 55bb89bd71..d154dae752 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -692,6 +692,11 @@ Neither of these Rake tasks do anything you could not do with `db:migrate`. They are simply more convenient, since you do not need to explicitly specify the version to migrate to. +### Setup the Database + +The `rake db:setup` task will create the database, load the schema and initialize +it with seed data. + ### Resetting the Database The `rake db:reset` task will drop the database and set it up again. This is -- cgit v1.2.3 From 3bcecf8258d6b63ded2714672f92ad767423e41f Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 30 Aug 2013 01:10:30 -0300 Subject: Fix typos [ci skip] --- guides/source/migrations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source/migrations.md') diff --git a/guides/source/migrations.md b/guides/source/migrations.md index d154dae752..414ce46a4e 100644 --- a/guides/source/migrations.md +++ b/guides/source/migrations.md @@ -695,12 +695,12 @@ version to migrate to. ### Setup the Database The `rake db:setup` task will create the database, load the schema and initialize -it with seed data. +it with the seed data. ### Resetting the Database The `rake db:reset` task will drop the database and set it up again. This is -functionally eqivalent to `rake db:drop db:setup` +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, -- cgit v1.2.3