Sha256: c9a2164fba028814b18f4941a4477378c83cc5597ba66d238886fb8ea7924862
Contents?: true
Size: 401 Bytes
Versions: 8
Compression:
Stored size: 401 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems