roda - Rom-sql Rake Task -


i'm trying setup migrations using 'rom/sql/rake_task'.

here sample, sadly isn't working it's complaining missing sequel adaptor. assistance or direction appreciated?

require 'sqlite3' require 'rom-sql' require 'rom/sql/rake_task'  namespace :db   task :setup     rom.setup(:sql, 'sqlite_memory')     rom.finalize      rom::sql.migration       change         create_table(:users)           primary_key :id           string :name         end       end     end   end end 

complete example: https://github.com/gotar/sinatra-rom

after add

require 'bundler/setup' require 'rom/sql/rake_task'  task :setup   # load rom related stuff. don't need specify manually connection end 

to rakefile few raketasks (rake -t) list them,

and then

$ rake db:create_migration[any_name] 

and in file create, can add migration.

thats all


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -