I'm new to rails application. I got connection with mongodb using mongoid. I generated the mongoid:migration using command called
rails generate migration sample
it creates,
db\migrate\20111222081138_sample.rb contains the following code
class Sample < Mongoid::Migration
def self.up
sample.create(first_name: "Heinrich", last_name: "Heine")
end
def self.down
end
end
my questions are 1.why schema.rb is not present in db. 2.how to populate data into mongodb using rails 3.how to list db collections in rails 4.how to produce bson file into rails