Sha256: 6f464543a73529770b12c76ca8ffb610fe1aaf467cc59eff0ea7382a46e5075f

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 Bytes

Contents

class CreateMentions < ActiveRecord::Migration
  def change
    create_table :mentions do |t|
      t.string  :mentionner_type
      t.integer :mentionner_id
      t.string  :mentionable_type
      t.integer :mentionable_id
      t.datetime :created_at
    end

    add_index :mentions, ["mentionner_id", "mentionner_type"],   :name => "fk_mentions"
    add_index :mentions, ["mentionable_id", "mentionable_type"], :name => "fk_mentionables"
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
socialization-0.3.0 demo/demo_app/db/migrate/20120221200644_create_mentions.rb
socialization-0.3.0 generators/socialization/templates/migration_mentions.rb