Sha256: 11b9c2e7816c2670d2aa449abf570ab3b76dc803b5f798e59a3d67a0272551c6
Contents?: true
Size: 429 Bytes
Versions: 13
Compression:
Stored size: 429 Bytes
Contents
# frozen_string_literal: true class CreateComments < ActiveRecord::Migration[4.2] def self.up create_table :comments, force: true do |t| t.references :user t.references :commentable, polymorphic: true t.boolean :private # TODO: add support for private comments. t.string :title, default: "" t.text :comment t.timestamps end end def self.down drop_table :comments end end
Version data entries
13 entries across 13 versions & 1 rubygems