Browse Source

Add guid column to posts; remove guid column from feeds

master
Adrian Short 12 years ago
parent
commit
48973b59fd
2 changed files with 8 additions and 2 deletions
  1. +6
    -0
      db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb
  2. +2
    -2
      db/schema.rb

+ 6
- 0
db/migrate/20130222123224_add_guid_to_posts_remove_guid_from_feeds.rb View File

@@ -0,0 +1,6 @@
class AddGuidToPostsRemoveGuidFromFeeds < ActiveRecord::Migration
def change
remove_column :feeds, :guid
add_column :posts, :guid, :string
end
end

+ 2
- 2
db/schema.rb View File

@@ -11,14 +11,13 @@
# #
# It's strongly recommended to check this file into your version control system. # 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| create_table "feeds", :force => true do |t|
t.string "title" t.string "title"
t.string "feed_url" t.string "feed_url"
t.string "url" t.string "url"
t.string "description" t.string "description"
t.string "guid"
t.string "generator" t.string "generator"
t.time "last_fetched" t.time "last_fetched"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
@@ -37,6 +36,7 @@ ActiveRecord::Schema.define(:version => 20130222120002) do
t.integer "feed_id" t.integer "feed_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
t.string "guid"
end end


create_table "users", :force => true do |t| create_table "users", :force => true do |t|


Loading…
Cancel
Save