diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 14:07:58 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:52 +0100 |
commit | b6497d3b5a84ca5e7e15700419ddf44c096c57a2 (patch) | |
tree | ff1c076ceb415db9481db7660b93d239fa034505 /railties/lib | |
parent | 57fae9b2c7d193ec16baf38a8797588fb466db49 (diff) | |
download | rails-b6497d3b5a84ca5e7e15700419ddf44c096c57a2.tar.gz rails-b6497d3b5a84ca5e7e15700419ddf44c096c57a2.tar.bz2 rails-b6497d3b5a84ca5e7e15700419ddf44c096c57a2.zip |
Skip active record properly in 'plugin new' generator
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb b/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb index b42e45d544..dbcaf6b92f 100644 --- a/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb +++ b/railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb @@ -6,7 +6,7 @@ require "rails/test_help" Rails.backtrace_cleaner.remove_silencers! -<% if full? -%> +<% if full? && !options[:skip_active_record] -%> # Run any available migration from application ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # and from engine |