I’m trying to run some migrations on a database via Sequel’s Sequel::Migrator. However, when I run…
DB = Sequel.sqlite
Sequel::Migrator.apply DB, 'db/migrations'
I got the following error.
uninitialized constant Sequel::Migrator
What gives?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Nowadays
Sequel::Migratoris not included by default. This means that you just can’trequire 'sequel'and be able to start usingSequel::Migratorright away.Instead you have to load the migration and core extensions provided by Sequel like so.
Now if you check whether
Sequel::Migratoris defined Ruby should return"constant".