Created
July 14, 2012 21:17
-
-
Save crm114/3113406 to your computer and use it in GitHub Desktop.
Django vs Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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