Sha256: 34f5a7e181950c06251369bc02cdfa93cf08778d49f89db79d244476dfd0190e

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

# desc "Explaining what the task does"
# task :spina_blog do
#   # Task goes here
# end

namespace :spina_conferences_blog do
  task photo_to_image: :environment do
    Blog::Post.find_each do |post|
      post.update_column :image_id, post.photo.image_id
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.2.0 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.1.4 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.1.3 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.1.2 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.1.1 lib/tasks/spina/admin/conferences/blog_tasks.rake
spina-admin-conferences-blog-0.1.0 lib/tasks/spina/admin/conferences/blog_tasks.rake