Created
April 27, 2011 20:55
-
-
Save scottlowe/945187 to your computer and use it in GitHub Desktop.
Migration to create Article model in text search example code
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 CreateArticles < ActiveRecord::Migration | |
def self.up | |
create_table :articles do |t| | |
t.string :title | |
t.text :body | |
t.timestamps | |
end | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment