There is another stone called otr-activerecord . This gemstone provides the following tasks:
rake db:createrake db:create_migration[name]rake db:droprake db:environment:setrake db:fixtures:loadrake db:migraterake db:migrate:statusrake db:rollbackrake db:schema:cache:clearrake db:schema:cache:dumprake db:schema:dumprake db:schema:loadrake db:seedrake db:setuprake db:structure:dumprake db:structure:loadrake db:version
All you have to do is install it and add a Rakefile with content
load 'tasks/otr-activerecord.rake' OTR::ActiveRecord.configure_from_file! 'config/database.yml'
I prefer this gemstone over active_record_migrations or Standalone Migration, because these two gemstones depend on railties , i.e. almost all Rails. For example, Nokogiri takes a long time to compile and takes up a lot of space.
Franklin yu
source share