From 45072f34d27bda34b182f14f8b02d778d1648cce Mon Sep 17 00:00:00 2001 From: John Kelly Ferguson Date: Sun, 25 May 2014 18:48:14 -0400 Subject: Rename Posts to Articles in Guides' Getting Started App, continuation of #15215 [ci skip] --- .../db/migrate/20130122042648_create_articles.rb | 10 ++++++++++ .../getting_started/db/migrate/20130122042648_create_posts.rb | 10 ---------- .../db/migrate/20130122045842_create_comments.rb | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 guides/code/getting_started/db/migrate/20130122042648_create_articles.rb delete mode 100644 guides/code/getting_started/db/migrate/20130122042648_create_posts.rb (limited to 'guides/code/getting_started/db/migrate') diff --git a/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb new file mode 100644 index 0000000000..6bb255e89f --- /dev/null +++ b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb @@ -0,0 +1,10 @@ +class CreateArticles < ActiveRecord::Migration + def change + create_table :articles do |t| + t.string :title + t.text :text + + t.timestamps + end + end +end diff --git a/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb b/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb deleted file mode 100644 index 602bef31ab..0000000000 --- a/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :text - - t.timestamps - end - end -end 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 -- cgit v1.2.3