Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: Rails  |  size: 0.24 KB  |  views: 1  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class CreateResults < ActiveRecord::Migration
  2.   def change
  3.     create_table :results do |t|
  4.         t.string "result", :limit => 40
  5.         t.string "cal", :limit => 40
  6.         t.string "sum",:limit => 300
  7.       t.timestamps
  8.     end
  9.   end
  10. end
clone this paste RAW Paste Data