silence AR migration noise during specs.

This commit is contained in:
Micah Geisel 2018-04-26 20:36:02 -07:00
parent 72d3d33ca7
commit ace44975d1
1 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,13 @@
def active_record_load_schema
ActiveRecord::Schema.define do
create_table :users, :force => true do |t|
t.integer :name
end
ActiveRecord::Migration.suppress_messages do
ActiveRecord::Schema.define do
create_table :users, :force => true do |t|
t.integer :name
end
create_table :agents, :id => false, :force => true do |t|
t.integer :name
create_table :agents, :id => false, :force => true do |t|
t.integer :name
end
end
end
end