title: Active-sqlserver-adapter with Rails 5 application.
body: <p>I am trying to set up a new application with rails 5. I have a half dozen applications working fine with rails 4.x. </p>
  
  <p>When I try to do a bundle install, I get an error that starts with </p>
  
  <pre><code>Error:[rake --tasks] DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from &lt;top (required)&gt; at C:/Users/cmendla/RubymineProjects/user_message_console/config/application.rb:7)
  DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from &lt;top (required)&gt; at C:/Users/cmendla/RubymineProjects/user_message_console/config/application.rb:7)
  rake aborted!
  Bundler::GemRequireError: There was an error while trying to load the gem 'activerecord-sqlserver-adapter'.
  Gem Load Error is: undefined method `add_order!' for class `Class'
  Backtrace for gem load error is:
  </code></pre>
  
  <p>If I do a bundle show activerecord I get </p>
  
  <pre><code>C:\Users\cmendla\RubymineProjects\user_message_console&gt;bundle show activerecord
  C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.0.1
  </code></pre>
  
  <p>I've tried both a plain gem and a gem with different versions</p>
  
  <pre><code>gem 'tiny_tds'
  # gem 'activerecord-sqlserver-adapter', '~&gt; 5.0.0'
   gem 'activerecord-sqlserver-adapter'
  </code></pre>
  
  <p>A bundle install shows an error code of 0</p>
  
  <pre><code>Using activerecord-sqlserver-adapter 2.3.8
  (this is a partial list ).....
  Using sprockets-rails 3.2.0
  Using coffee-rails 4.2.1
  Using jquery-rails 4.2.1
  Using web-console 3.4.0
  Using rails 5.0.0.1
  Using sass-rails 5.0.6
  Bundle complete! 14 Gemfile dependencies, 58 gems now installed.
  Use `bundle show [gemname]` to see where a bundled gem is installed.
  
  Process finished with exit code 0
  </code></pre>
  
  <p>But then I get the error that I posted above . There server I am using is server 2012</p>
  
  <p>There is some info at <a href="https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/rails5" rel="nofollow noreferrer">https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/rails5</a>  but it doesn't seem clear as to if I am loading the right gem version as that document references <code>gem 'activerecord-sqlserver-adapter', '~&gt; 4.2.0'</code></p>
  
  <p>If anyone knows of compatibility issues between rails 5 and the ActiveRecord SQL Server Adapter, I can stay with rails 4.x for a bit. Otherwise, I'd like to try to get this working. </p>