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

Version Path
fat_free_crm-0.15.2 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.16.4 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.15.1 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.16.3 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.16.2 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.16.1 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.16.0 db/migrate/20100928030613_create_comments.rb
fat_free_crm-0.15.0 db/migrate/20100928030613_create_comments.rb