Skip to content

Commit

Permalink
schema dump and schema load fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brasten committed Aug 18, 2010
1 parent e572516 commit f327d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/sequel-rails/railties/database.rake
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion sequel-rails.gemspec
Expand Up @@ -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)"]
Expand Down

0 comments on commit f327d8e

Please sign in to comment.