From 6624156d57d3586c1906ae0f0176286cfa50e5c7 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 13 Jun 2014 16:15:13 +0800 Subject: [PATCH] little modification for rss2 import --- app/models/album.rb | 1 + app/models/album_image.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/album.rb b/app/models/album.rb index 05b8202..7481441 100644 --- a/app/models/album.rb +++ b/app/models/album.rb @@ -12,6 +12,7 @@ class Album field :cover_path #can refact field :tag_names field :uid, type: String + field :rss2_id, type: String # has_and_belongs_to_many :tags, :class_name => "GalleryTag" has_many :album_images, :autosave => true, :dependent => :destroy diff --git a/app/models/album_image.rb b/app/models/album_image.rb index fcaa0b3..1cbf382 100644 --- a/app/models/album_image.rb +++ b/app/models/album_image.rb @@ -7,6 +7,7 @@ class AlbumImage field :title field :description, localize: true + field :rss2_id, type: String # has_and_belongs_to_many :tags, :class_name => "GalleryTag"