Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7545435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:55:46+00:00 2026-05-30T08:55:46+00:00

I encounter error undefined method `new’ for Paperclip:Module while running rake db:migrate to update

  • 0

I encounter error undefined method `new’ for Paperclip:Module
while running rake db:migrate to update table for PaperClip.

Herewith in migration class

class ForPaperclip < ActiveRecord::Migration
  def self.up
    change_table :photos do |t|
      t.has_attached_file :shot
    end
  end

  def self.down
    drop_attached_file :photos, :shot
  end
end

I am using paperclip 2.6.0, ruby 1.9.2, rails 3.1.0
Any idea?

Below is the error stack.

/Users/Sa/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/migration.rb:517:in `load_migration'

/Users/Sa/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/migration.rb:512:in `migration'

/Users/Sa/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/migration.rb:509:in `rescue in migrate'

/Users/Sa/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/lib/active_record/migration.rb:507:in `migrate'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:55:47+00:00Added an answer on May 30, 2026 at 8:55 am

    sorry, this is really my bad. I created the migration file called *_paperclip.txt thus rails is unnecessarily looking for Paperclip module. It works fine, after I rename the migration file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any idea why I am getting this error: Exception encountered: #<NoMethodError: undefined method `assert_valid_keys'
I encounter an error of the form: The model item passed into the dictionary
i encounter an error like Error 1 fatal error LNK1107: invalid or corrupt file:
I'm trying to call Dispatcher.PushFrame() from several different thread but encounter an error: Must
I frequently encounter this situation in my VB6 applications Private Sub DoSomething On Error
I have often encountered an error such as cannot convert from 'method group' to
I've encountered the following error while trying to create a blogging application. Any ideas
What settings should be changed while setting up php WAMP so that undefined variable
Possible Duplicate: Error : get property of non-object I am new to codeigniter model,
AS above, i encountered a undefined reference error imp _ZN12classNameC1Ev when using JNI to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.