From f6d5036dd620da48624ce32494f63aa4221b05d5 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Fri, 20 Apr 2012 10:43:50 +0200 Subject: Adapt "Getting started guide" code sample --- .../getting_started/db/migrate/20110901012504_create_posts.rb | 11 ----------- .../getting_started/db/migrate/20120420083127_create_posts.rb | 10 ++++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) delete mode 100644 guides/code/getting_started/db/migrate/20110901012504_create_posts.rb create mode 100644 guides/code/getting_started/db/migrate/20120420083127_create_posts.rb (limited to 'guides/code/getting_started/db/migrate') diff --git a/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb b/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb deleted file mode 100644 index d45a961523..0000000000 --- a/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :name - t.string :title - t.text :content - - t.timestamps - end - end -end diff --git a/guides/code/getting_started/db/migrate/20120420083127_create_posts.rb b/guides/code/getting_started/db/migrate/20120420083127_create_posts.rb new file mode 100644 index 0000000000..602bef31ab --- /dev/null +++ b/guides/code/getting_started/db/migrate/20120420083127_create_posts.rb @@ -0,0 +1,10 @@ +class CreatePosts < ActiveRecord::Migration + def change + create_table :posts do |t| + t.string :title + t.text :text + + t.timestamps + end + end +end -- cgit v1.2.3 From dbb4c4ddb601e06fef37f63d644a5297f3292c2a Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Fri, 20 Apr 2012 10:47:38 +0200 Subject: New Getting started guide wont have tags --- .../getting_started/db/migrate/20110901013701_create_tags.rb | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 guides/code/getting_started/db/migrate/20110901013701_create_tags.rb (limited to 'guides/code/getting_started/db/migrate') diff --git a/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb b/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb deleted file mode 100644 index cf95b1c3d0..0000000000 --- a/guides/code/getting_started/db/migrate/20110901013701_create_tags.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTags < ActiveRecord::Migration - def change - create_table :tags do |t| - t.string :name - t.references :post - - t.timestamps - end - add_index :tags, :post_id - end -end -- cgit v1.2.3