Skip to content

Instantly share code, notes, and snippets.

@scottlowe
Created April 27, 2011 20:55
Show Gist options
  • Save scottlowe/945187 to your computer and use it in GitHub Desktop.
Save scottlowe/945187 to your computer and use it in GitHub Desktop.
Migration to create Article model in text search example code
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