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

  • Home
  • SEARCH
  • 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 8958947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:20:02+00:00 2026-06-15T15:20:02+00:00

While I run the db:migrate task, the migration doesn’t actually happen. Here’s the code

  • 0

While I run the db:migrate task, the migration doesn’t actually happen.
Here’s the code of my Rakefile:

namespace :db do
  desc "Migrate the database through scripts in lib/generators/facebook_event_fetcher/install/templates. Target specific version with VERSION=x"
  task :migrate => :environment do
    ActiveRecord::Migration.verbose = true
    #ActiveRecord::Migrator.migrate('db/migrate', ENV["VERSION"] ? ENV["VERSION"].to_i : nil )
    ActiveRecord::Migrator.migrate('lib/generators/facebook_event_fetcher/install/templates', nil)
  end

  task :environment do
    ActiveRecord::Base.establish_connection(YAML.load_file("config/database.yml"))
    ActiveRecord::Base.logger = Logger.new(File.open('db/database.log', 'a')) 
  end
end

You can take a closer look at the Github repo:
https://github.com/mabounassif/facebook_event_fetcher/blob/master/Rakefile#L42

Why wouldn’t the migration be triggered??

  • 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-06-15T15:20:03+00:00Added an answer on June 15, 2026 at 3:20 pm

    ActiveRecord::Migrator needs migration files to start with a number or timestamp so it can keep track of versions. Here is what I did to get a migration running in your repo:

    facebook_event_fetcher/lib/generators/facebook_event_fetcher/install/templates$ mv create_delayed_jobs.rb 001_create_delayed_jobs.rb
    facebook_event_fetcher/lib/generators/facebook_event_fetcher/install/templates$ cd ../../../../..
    facebook_event_fetcher/lib$ cd ..
    facebook_event_fetcher$ rake db:migrate
    ==  CreateDelayedJobs: migrating ==============================================
    -- create_table(:delayed_jobs, {:force=>true})
       -> 0.0076s
    -- add_index(:delayed_jobs, [:priority, :run_at], {:name=>"delayed_jobs_priority"})
       -> 0.0004s
    ==  CreateDelayedJobs: migrated (0.0081s) =====================================
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting an error while trying to run CFmx code on a remote
while attempting to run rake, I run into the following error: heroku rake db:migrate
I am getting this error when running ./manage.py migrate app_name While loading migration 'whatever.0001_initial':
Is there a folder to keep programs to run while doing starting of the
While trying to run the booking sample , the decider gets invoked 4 times
i have this thread: public void run() { try { while(isThereActivityRunning()) { results =
I am getting duplicate error in my xcode while build and run I have
I was following Azure Tutorial and found error while trying to run the Azure
I have in my Java application a thread that run a while(True) loop with
we need to evaluate a value in an object in run time while we

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.