Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use silence_stream instead of deprecated AR::silence.

  • Loading branch information...
commit f86c292f7edecc4eff9e19c32323d68246a4911e 1 parent d8f8115
@spectator spectator authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 spec/support/schema.rb
View
5 spec/support/schema.rb
@@ -37,8 +37,7 @@ class Note < ActiveRecord::Base
module Schema
def self.create
- ActiveRecord::Base.silence do
- ActiveRecord::Migration.verbose = false
+ silence_stream(STDOUT) do
ActiveRecord::Schema.define do
create_table :people, :force => true do |t|
@@ -100,4 +99,4 @@ def self.create
Comment.make(:body => 'First post!', :article => Article.make(:title => 'Hello, world!'))
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.