File: 20120220000804_create_comments.rb

package info (click to toggle)
ruby-sequenced 3.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,884 kB
  • sloc: ruby: 696; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.references :question
      t.text :body
      t.integer :sequential_id

      t.timestamps
    end
    add_index :comments, :question_id
  end
end