So, here's my recipe for freezing Rails into your app, with support for Microsoft SQL Server:
- If you've already frozen rails, you'll need to unfreeze it:
rake rails:unfreeze - add the gem dependency to your environment.rb:
config.gem "activerecord-sqlserver-adapter",
:lib => "active_record/connection_adapters/sqlserver_adapter",
:source => "http://gems.rubyonrails.org" - Install your gem(s) if you haven't already:
rake gems:install - Freeze your gem(s):
rake gems:unpack - Refreeze Rails (I use my gems - you could do this from edge instead):
rake rails:freeze:gems
P.S. This would be easily adaptable for any external ActiveRecord adapter (Oracle, db2, etc.)
No comments:
Post a Comment