Sha256: 5bb944dab3d12dcbaff758b81d5ad2a8fc3bdb2a9af23a16f32271a2b54bb79b
Contents?: true
Size: 424 Bytes
Versions: 16
Compression:
Stored size: 424 Bytes
Contents
class CreateComments < ActiveRecord::Migration 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
16 entries across 16 versions & 1 rubygems