Giter Club home page Giter Club logo

sequel-rails's Introduction

sequel-rails's People

Contributors

bcurren avatar brasten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sequel-rails's Issues

raise_on_save_failre = false only works for development environment

The railtie sets ::Sequel::Model.raise_on_save_failure = false (in config.after_initialize block at sequel-rails/railtie), but except for development environment the models are already loaded at this stage, thus all the models have raise_on_save_failure set to true.

Transactional Unit Tests

With ActiveRecord missing, the transactional_fixtures feature must be disabled, but this has the side-effect of turning off transactions for unit tests.

I've searched for a method to re-engage this with no luck, so as an alternative I've created a quick work-around that wraps the test runner in a transaction that's rolled back:

http://gist.github.com/515753

env problem on OS X

The provided rake tasks 'db:create' and 'db:drop' are created like:

task :create, :env, :needs => :environment do |t, args|
  args.with_defaults(:env => Rails.env)
...

, which ends up args = {:env => "/Users/pota/.bashrc"} on my machine, which is obviously not what it should be (Rails.env is "test", but the bashrc is set so it simply does not overwrite it). (Mac OS X 10.6.6., ruby 1.8.7.)

Deprecation warnings with rake :needs param, using Rails 3.0.11

I'm getting 5 warnings like the following when upgraded to rails 3.0.11 gems:

WARNING: 'task :t, arg, :needs => [deps]' is deprecated. Please use 'task :t, [args] => [deps]' instead.
at /opt/local/lib/ruby/gems/1.8/gems/sequel-rails-0.1.8/lib/sequel-rails/railties/database.rake:15

Won't install with Rails 3.0 final...

The command "sudo gem install sequel-rails" produces the following error:

ERROR: Error installing sequel-rails:
activemodel requires activesupport (= 3.0.0.rc2, runtime)

I'm sure this is because Rails 3.0 final is out today.

task db:reset and db:setup does not work

When I try to run either db:reset or db:setup, rake complaints about "undefined method '[]' for nil:NilClass", which I believe is that rake calls db:drop instead of db:drop:all.

Update dependencies to Rails 3+

Now that Rails 3 has been released and 3.1 is around the corner, any chance of releasing a new version with updated dependencies?

dump & load need to flag migration version

schema:dump needs to include the migration version in schema.rb

schema:load needs to add migration records assuming that all migrations up to the indicated version were applied.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.