From 0e79779fc3b29a027338117d14e0f76684c12f86 Mon Sep 17 00:00:00 2001 From: Washington Luiz Date: Thu, 1 Aug 2013 00:19:19 -0300 Subject: [PATCH] Remove deprecated ActiveSupport::Benchmarkable#silence --- spec/support/schema.rb | 66 ++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/spec/support/schema.rb b/spec/support/schema.rb index 238aeb0..b74ba7e 100644 --- a/spec/support/schema.rb +++ b/spec/support/schema.rb @@ -46,45 +46,42 @@ end module Schema def self.create - ActiveRecord::Base.silence do - ActiveRecord::Migration.verbose = false + ActiveRecord::Migration.verbose = false - ActiveRecord::Schema.define do - create_table :people, :force => true do |t| - t.integer :parent_id - t.string :name - t.integer :salary - t.boolean :awesome, :default => false - t.timestamps - end + ActiveRecord::Schema.define do + create_table :people, :force => true do |t| + t.integer :parent_id + t.string :name + t.integer :salary + t.boolean :awesome, :default => false + t.timestamps + end - create_table :articles, :force => true do |t| - t.integer :person_id - t.string :title - t.text :body - end + create_table :articles, :force => true do |t| + t.integer :person_id + t.string :title + t.text :body + end - create_table :comments, :force => true do |t| - t.integer :article_id - t.integer :person_id - t.text :body - end + create_table :comments, :force => true do |t| + t.integer :article_id + t.integer :person_id + t.text :body + end - create_table :tags, :force => true do |t| - t.string :name - end + create_table :tags, :force => true do |t| + t.string :name + end - create_table :articles_tags, :force => true, :id => false do |t| - t.integer :article_id - t.integer :tag_id - end - - create_table :notes, :force => true do |t| - t.integer :notable_id - t.string :notable_type - t.string :note - end + create_table :articles_tags, :force => true, :id => false do |t| + t.integer :article_id + t.integer :tag_id + end + create_table :notes, :force => true do |t| + t.integer :notable_id + t.string :notable_type + t.string :note end end @@ -107,6 +104,5 @@ module Schema end Comment.make(:body => 'First post!', :article => Article.make(:title => 'Hello, world!')) - end -end \ No newline at end of file +end