Hi
I am trying to create a rake task to run migrations. I was able to do
the following. But this is actually using the bin/sequel tool.
sh %{sequel -m db/migrations
postgres://postgres:postgres@localhost:5432/bookmarks}
Is there a way to run the migrations like ruby code ? I tried the
following, but it throws an error.
Sequel::Migrator.run(DB, 'db/migrations')
rake aborted!
uninitialized constant Sequel::Migrator
/home/venkat/Projects/bookmarks/Rakefile:14:in `block in <top (required)>'
/home/venkat/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/venkat/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in
`<main>'
Tasks: TOP => migrate
(See full trace by running task with --trace)
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sequel-talk/-/A2KkOVKDlyUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en.