I am running into ActiveRecord::ConnectionNotEstablished error.
I have the following code
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'users_vendors.db')
Class User < ActiveRecord::Base
has_and_belongs_to_many :vendors
end
class Vendor < ActiveRecord::Base
has_and_belongs_to_many :users
end
I am new to active records in ruby so any help would be appreciated