You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class CreateComments < ActiveRecord::Migration
|
|
def change
|
|
create_table :comments do |t|
|
|
t.text :body
|
|
t.integer :user_id
|
|
t.integer :asciicast_id
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index(:comments, :asciicast_id)
|
|
add_index(:comments, :user_id)
|
|
end
|
|
end
|