aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_migrations.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2016-10-20 20:32:24 +0200
committerYves Senn <yves.senn@gmail.com>2016-10-20 20:32:24 +0200
commitfb2f8d2b75b1999b7ff7adef16ba7fb34600fa0d (patch)
tree89d7b95341688d3a10454f31aebb2b9c9f7cd7dc /guides/source/active_record_migrations.md
parent184cc703a272f6a9d835446a550137055e385a8c (diff)
downloadrails-fb2f8d2b75b1999b7ff7adef16ba7fb34600fa0d.tar.gz
rails-fb2f8d2b75b1999b7ff7adef16ba7fb34600fa0d.tar.bz2
rails-fb2f8d2b75b1999b7ff7adef16ba7fb34600fa0d.zip
remove trailing whitespace [ci skip]
Diffstat (limited to 'guides/source/active_record_migrations.md')
-rw-r--r--guides/source/active_record_migrations.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index a45becf670..5b70bcdb3c 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -1018,10 +1018,10 @@ such features, the `execute` method can be used to execute arbitrary SQL.
Migrations and Seed Data
------------------------
-The main purpose of Rails' migration feature is to issue commands that modify the
-schema using a consistent process. Migrations can also be used
-to add or modify data. This is useful in an existing database that can't be destroyed
-and recreated, such as a production database.
+The main purpose of Rails' migration feature is to issue commands that modify the
+schema using a consistent process. Migrations can also be used
+to add or modify data. This is useful in an existing database that can't be destroyed
+and recreated, such as a production database.
```ruby
class AddInitialProducts < ActiveRecord::Migration[5.0]
@@ -1037,10 +1037,10 @@ class AddInitialProducts < ActiveRecord::Migration[5.0]
end
```
-To add initial data after a database is created, Rails has a built-in
-'seeds' feature that makes the process quick and easy. This is especially
-useful when reloading the database frequently in development and test environments.
-It's easy to get started with this feature: just fill up `db/seeds.rb` with some
+To add initial data after a database is created, Rails has a built-in
+'seeds' feature that makes the process quick and easy. This is especially
+useful when reloading the database frequently in development and test environments.
+It's easy to get started with this feature: just fill up `db/seeds.rb` with some
Ruby code, and run `rails db:seed`:
```ruby