```ruby
class Snippet
  include Mongoid::Document
end
```

Add attributes to Snippet model; used rails generate model cmd
user
```ruby
class Snippet
  include Mongoid::Document
  field :name, :type => String
  field :type, :type => String
  field :description, :type => String
  field :tags, :type => String
  field :text, :type => String
end
```
assistant