diff options
author | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-25 18:48:14 -0400 |
---|---|---|
committer | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-25 18:48:14 -0400 |
commit | 45072f34d27bda34b182f14f8b02d778d1648cce (patch) | |
tree | 66a21875edf8908997ba28f63a8d32f8cedd2a0b /guides/code/getting_started/db/migrate | |
parent | 6c30717f8c182dc05f63779b3a9a532fb9076b05 (diff) | |
download | rails-45072f34d27bda34b182f14f8b02d778d1648cce.tar.gz rails-45072f34d27bda34b182f14f8b02d778d1648cce.tar.bz2 rails-45072f34d27bda34b182f14f8b02d778d1648cce.zip |
Rename Posts to Articles in Guides' Getting Started App, continuation of #15215 [ci skip]
Diffstat (limited to 'guides/code/getting_started/db/migrate')
-rw-r--r-- | guides/code/getting_started/db/migrate/20130122042648_create_articles.rb (renamed from guides/code/getting_started/db/migrate/20130122042648_create_posts.rb) | 4 | ||||
-rw-r--r-- | guides/code/getting_started/db/migrate/20130122045842_create_comments.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb index 602bef31ab..6bb255e89f 100644 --- a/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb +++ b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb @@ -1,6 +1,6 @@ -class CreatePosts < ActiveRecord::Migration +class CreateArticles < ActiveRecord::Migration def change - create_table :posts do |t| + create_table :articles do |t| t.string :title t.text :text diff --git a/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb b/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb index 3e51f9c0f7..1f765839ac 100644 --- a/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb +++ b/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb @@ -3,7 +3,7 @@ class CreateComments < ActiveRecord::Migration create_table :comments do |t| t.string :commenter t.text :body - t.references :post, index: true + t.references :article, index: true t.timestamps end |