Last active
June 21, 2016 17:27
-
-
Save bacarini/7087b53878e2dd38d3c9140f276bb78a to your computer and use it in GitHub Desktop.
lib/tasks/database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sequel' | |
require_relative '../../config/initializers/sequel_init' | |
namespace :db do | |
desc 'Load the seed data from db/seeds.rb' | |
task seed: :environment do | |
require 'sequel/extensions/seed' | |
Sequel.extension :seed | |
Sequel::Seeder.apply(MyApp::SequelDb.main_db, "db/seeds") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment