From 48973b59fd8ff63b59e454d0d71ce7011fb4e361 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 22 Feb 2013 12:35:43 +0000 Subject: [PATCH] Add guid column to posts; remove guid column from feeds --- ...130222123224_add_guid_to_posts_remove_guid_from_feeds.rb | 6 ++++++ db/schema.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb diff --git a/db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb b/db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb new file mode 100644 index 0000000..d2a4d35 --- /dev/null +++ b/db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb @@ -0,0 +1,6 @@ +class AddGuidToPostsRemoveGuidFromFeeds < ActiveRecord::Migration + def change + remove_column :feeds, :guid + add_column :posts, :guid, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index ffee706..e2dfefd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,14 +11,13 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130222120002) do +ActiveRecord::Schema.define(:version => 20130222123224) do create_table "feeds", :force => true do |t| t.string "title" t.string "feed_url" t.string "url" t.string "description" - t.string "guid" t.string "generator" t.time "last_fetched" t.datetime "created_at", :null => false @@ -37,6 +36,7 @@ ActiveRecord::Schema.define(:version => 20130222120002) do t.integer "feed_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false + t.string "guid" end create_table "users", :force => true do |t|