sequel-rails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sequel-rails/railties/database.rake +4 -1
- data/sequel-rails.gemspec +1 -1
- metadata +2 -2
@@ -12,7 +12,10 @@ namespace :db do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
desc "Load a schema.rb file into the database"
|
15
|
-
task :load do
|
15
|
+
task :load, :needs => :environment do
|
16
|
+
require 'sequel-rails/storage'
|
17
|
+
Rails::Sequel::Storage.new(Rails.env).create
|
18
|
+
|
16
19
|
file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
|
17
20
|
if File.exists?(file)
|
18
21
|
load(file)
|
data/sequel-rails.gemspec
CHANGED