title: Undefined method raise_in_transactional_callbacks=' for ActiveRecord::Base:Class (NoMethodError)
body: <p>Before writing this question I looked at these answers, but was unable to find a solution.:</p>
  <p><a href="https://stackoverflow.com/questions/24874678/error-when-execute-rails-generate-scaffold-user-namestring-emailstring">Error when execute rails generate scaffold User name:string email:string</a></p>
  <p><a href="https://stackoverflow.com/questions/18000712/rake-aborted-undefined-method-migration-error-for-activerecordbaseclass">rake aborted! undefined method `migration_error=' for ActiveRecord::Base:Class</a></p>
  <p><a href="https://stackoverflow.com/questions/22977051/error-launching-rails-server-undefined-method-configure">Error launching Rails server: undefined method 'configure'</a></p>
  <hr />
  <p>When I try to start a new application (for  <a href="http://www.railstutorial.org/" rel="noreferrer">Hartl's tutorial</a>, Chapter 2), at the stage <em>scaffold</em> start, I got an error like:</p>
  <pre><code>**undefined method `configure' for #&lt;SampleApp2::Application:0x00000101a74610&gt; (NoMethodError)**
  </code></pre>
  <p>But thanks to the above examples, I edited the <em>development.rb</em> file:</p>
  <pre><code>DemoApp::Application.configure do
  </code></pre>
  <p>(Yes, my application is called <em>demo_app</em> so I transformed its name).</p>
  <p>After that, I tried to run <em>scaffold</em> again but got a new error:</p>
  <pre><code>**method_missing': undefined method raise_in_transactional_callbacks=' for ActiveRecord::Base:Class (NoMethodError)**
  </code></pre>
  <p>In response to similar cases indicates a <em>migration</em> method - that it should be removed from the file development.rb. Similarly, I tried to find in this file <em>raise_in_transactional_callbacks</em> method, but it's not there!
  In addition, I would say that the full code that produces in cmd is very large:</p>
  <pre><code>C:\Sites\demo_app&gt;rails generate scaffold User name:string email:string
  invoke  active_record
  C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `raise_in_transactional_callbacks=' for ActiveRecord::Base:Class (NoMethodError)
  from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/railtie.rb:166:in `block (3 levels) in &lt;class:Railtie&gt;'
  from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/railtie.rb:165:in `each'
  from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/railtie.rb:165:in `block (2 levels) in &lt;class:Railtie&gt;'
  …
  from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.2/lib/rails/commands.rb:48:in `&lt;top (required)&gt;'
  from bin/rails:4:in `require'
  from bin/rails:4:in `&lt;main&gt;'
  </code></pre>
  <p>Where the ...(ellipsis) - specially cut similar code.
  That's all. I would be grateful for any help!</p>