Remove deprecated ActiveSupport::Benchmarkable#silence
This commit is contained in:
parent
3299f3aeaf
commit
0e79779fc3
|
@ -46,45 +46,42 @@ end
|
||||||
|
|
||||||
module Schema
|
module Schema
|
||||||
def self.create
|
def self.create
|
||||||
ActiveRecord::Base.silence do
|
ActiveRecord::Migration.verbose = false
|
||||||
ActiveRecord::Migration.verbose = false
|
|
||||||
|
|
||||||
ActiveRecord::Schema.define do
|
ActiveRecord::Schema.define do
|
||||||
create_table :people, :force => true do |t|
|
create_table :people, :force => true do |t|
|
||||||
t.integer :parent_id
|
t.integer :parent_id
|
||||||
t.string :name
|
t.string :name
|
||||||
t.integer :salary
|
t.integer :salary
|
||||||
t.boolean :awesome, :default => false
|
t.boolean :awesome, :default => false
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table :articles, :force => true do |t|
|
create_table :articles, :force => true do |t|
|
||||||
t.integer :person_id
|
t.integer :person_id
|
||||||
t.string :title
|
t.string :title
|
||||||
t.text :body
|
t.text :body
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table :comments, :force => true do |t|
|
create_table :comments, :force => true do |t|
|
||||||
t.integer :article_id
|
t.integer :article_id
|
||||||
t.integer :person_id
|
t.integer :person_id
|
||||||
t.text :body
|
t.text :body
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table :tags, :force => true do |t|
|
create_table :tags, :force => true do |t|
|
||||||
t.string :name
|
t.string :name
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table :articles_tags, :force => true, :id => false do |t|
|
create_table :articles_tags, :force => true, :id => false do |t|
|
||||||
t.integer :article_id
|
t.integer :article_id
|
||||||
t.integer :tag_id
|
t.integer :tag_id
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table :notes, :force => true do |t|
|
|
||||||
t.integer :notable_id
|
|
||||||
t.string :notable_type
|
|
||||||
t.string :note
|
|
||||||
end
|
|
||||||
|
|
||||||
|
create_table :notes, :force => true do |t|
|
||||||
|
t.integer :notable_id
|
||||||
|
t.string :notable_type
|
||||||
|
t.string :note
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -107,6 +104,5 @@ module Schema
|
||||||
end
|
end
|
||||||
|
|
||||||
Comment.make(:body => 'First post!', :article => Article.make(:title => 'Hello, world!'))
|
Comment.make(:body => 'First post!', :article => Article.make(:title => 'Hello, world!'))
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue