0

I use the ActiveRecord-gem for accessing a sqlite3-database, all without Rails. I use it like this:

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3", :database => name_file )

ActiveRecord::Schema.define do
  if ! table_exists? "db_table"
    do_something
  end
end

And then I get an output like

-- table_exists?("db_table")
   -> 0.0048s

Which I don't want. According to different posts, a simple

ActiveRecord::Base.logger = nil

should do the trick. But this is already nil...

4

1 回答 1

1

这些看起来像迁移消息。这应该有助于:

ActiveRecord::Migration.verbose = false
于 2012-12-30T00:18:49.117 回答