Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

schema dump and schema load fixes

  • Loading branch information...
commit f327d8e32eba28d904a3e026d845f352d9a2b3aa 1 parent e572516
Brasten Sager authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/sequel-rails/railties/database.rake
  2. +1 −1  sequel-rails.gemspec
5 lib/sequel-rails/railties/database.rake
View
@@ -12,7 +12,10 @@ namespace :db do
end
desc "Load a schema.rb file into the database"
- task :load do
+ task :load, :needs => :environment do
+ require 'sequel-rails/storage'
+ Rails::Sequel::Storage.new(Rails.env).create
+
file = ENV['SCHEMA'] || "#{Rails.root}/db/schema.rb"
if File.exists?(file)
load(file)
2  sequel-rails.gemspec
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{sequel-rails}
- s.version = "0.1.5"
+ s.version = "0.1.6"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brasten Sager (brasten)"]
Please sign in to comment.
Something went wrong with that request. Please try again.