Skip to content

Instantly share code, notes, and snippets.

@crm114
Created July 14, 2012 21:17
Show Gist options
  • Save crm114/3113406 to your computer and use it in GitHub Desktop.
Save crm114/3113406 to your computer and use it in GitHub Desktop.
Django vs Rails
class Lesson
include Mongoid::Document
field :title, type: String
field :body, type: String
field :release_date, type: Date
field :pdf, type: String
field :image, type String
field :audio, type: String
end
class Lesson(models.Model):
title = models.TextField()
body = models.TextField()
release_date = models.DateTimeField()
pdf = models.TextField()
image = models.TextField()
audio = models.TextField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment