Sha256: 0389d63719196ba4973d04b211cc8b16d8367beba3adb412e731244514cd6edd
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
class CreateCustomComments < ActiveRecord::Migration def change enable_extension 'hstore' create_table :custom_comments do |t| # t.string :title, :limit => 50, :default => "" t.text :message t.references :custom_commentable, polymorphic: true t.references :user, polymorphic: true, index: true t.string :role, default: nil t.hstore :related_attributes t.timestamps end add_index :custom_comments, [:custom_commentable_type, :custom_commentable_id], name: :index_custom_comments_on_commentable_type_and_commentable_id end end
Version data entries
2 entries across 2 versions & 1 rubygems