1 class DiaryComments < ActiveRecord::Migration[4.2]
 
   3     create_table "diary_comments", :id => false do |t|
 
   4       t.column "id",             :bigserial, :primary_key => true, :null => false
 
   5       t.column "diary_entry_id", :bigint, :null => false
 
   6       t.column "user_id",        :bigint, :null => false
 
   7       t.column "body",           :text, :null => false
 
   8       t.column "created_at",     :datetime, :null => false
 
   9       t.column "updated_at",     :datetime, :null => false
 
  12     add_index "diary_comments", %w[diary_entry_id id], :name => "diary_comments_entry_id_idx", :unique => true
 
  16     drop_table "diary_comments"