On May 20, 12:01 pm, byrnejb <[email protected]> wrote:
> I was wondering if anyone has references to tutorials or blog posts
> regarding experience with replacing AR with SQ in otherwise Rails
> projects?  I am unsure from the documentation how to approach this.

I don't have any information specifically on the subject of converting
ActiveRecord code to Sequel code.  I've done 6 ActiveRecord->Sequel
conversions and didn't run into any major problems, but I was the
original author of all 6 projects, had good test suites for all of
them, and wasn't using plugins I didn't write myself.

In general you need to make sure the Rails environment loads Sequel
(generally in environment.rb, one of the environment files, or an
initializer).  You can turn off ActiveRecord by removing it from
config.frameworks.  Then it's just converting the model classes from
ActiveRecord to Sequel, as well as any code that calls them and
depends on ActiveRecord specific behavior.

If you have questions about the best way to accomplish something in
Sequel for a given snippet of ActiveRecord code, please post here.

Thanks,
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to