aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-12-15 17:47:28 +1030
committerMatthew Draper <matthew@trebex.net>2015-12-15 17:47:28 +1030
commitcd90f4f273071fd20ff6e4ce34c33171923733b4 (patch)
treef29f9a0aec8432846199ccd69e1f975b95321b4b /guides/source/getting_started.md
parentde2135209f39a4d336916feceab972bc89dc93de (diff)
parent97c77160cd4c8b32a6572adefa268eb91162e3e1 (diff)
downloadrails-cd90f4f273071fd20ff6e4ce34c33171923733b4.tar.gz
rails-cd90f4f273071fd20ff6e4ce34c33171923733b4.tar.bz2
rails-cd90f4f273071fd20ff6e4ce34c33171923733b4.zip
Merge pull request #21538 from matthewd/migration-version
Add migration versioning via Migration subclasses
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r--guides/source/getting_started.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index 5700e71103..1416d00de5 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -679,7 +679,7 @@ If you look in the `db/migrate/YYYYMMDDHHMMSS_create_articles.rb` file
(remember, yours will have a slightly different name), here's what you'll find:
```ruby
-class CreateArticles < ActiveRecord::Migration
+class CreateArticles < ActiveRecord::Migration[5.0]
def change
create_table :articles do |t|
t.string :title
@@ -1542,7 +1542,7 @@ In addition to the model, Rails has also made a migration to create the
corresponding database table:
```ruby
-class CreateComments < ActiveRecord::Migration
+class CreateComments < ActiveRecord::Migration[5.0]
def change
create_table :comments do |t|
t.string :commenter