Remove deprecated ActiveSupport::Benchmarkable#silence

This commit is contained in:
Washington Luiz 2013-08-01 00:19:19 -03:00
parent 3299f3aeaf
commit 0e79779fc3
1 changed files with 31 additions and 35 deletions

View File

@ -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
end