Skip to content

Instantly share code, notes, and snippets.

@abacha
Created March 11, 2013 12:55
Show Gist options
  • Select an option

  • Save abacha/5134042 to your computer and use it in GitHub Desktop.

Select an option

Save abacha/5134042 to your computer and use it in GitHub Desktop.
config.before(:all) do
ActiveRecord::Schema.verbose = false
load_schema = lambda {
load "#{Rails.root.to_s}/db/schema.rb"
# ActiveRecord::Migrator.up('db/migrate') # use migrations
}
silence_stream(STDOUT, &load_schema)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment