Sha256: 40ebd917d3c4e28bfbdf07bb742f0c10251f2466c4d4471ea981d13b1d60c0e7

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

if ActiveRecord.gem_version >= Gem::Version.new('5.0')
  class AddFeaturedImageToPiccoBlogPosts < ActiveRecord::Migration[4.2]; end
else
  class AddFeaturedImageToPiccoBlogPosts < ActiveRecord::Migration; end
end

AddFeaturedImageToPiccoBlogPosts.class_eval do
  def change
    add_column :picco_blog_posts, :featured_image_uid,  :string
    add_column :picco_blog_posts, :featured_image_name, :string 
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picco_blog-1.4.3 db/migrate/20170102130706_add_featured_image_to_picco_blog_posts.rb
picco_blog-1.4.2 db/migrate/20170102130706_add_featured_image_to_picco_blog_posts.rb
picco_blog-1.4.1 db/migrate/20170102130706_add_featured_image_to_picco_blog_posts.rb