Remove deprecated ActiveSupport::Benchmarkable#silence
This commit is contained in:
parent
3299f3aeaf
commit
0e79779fc3
|
@ -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
|
Loading…
Reference in New Issue