Sha256: c81ecf4517dfeb7990390020ec2109257d209bd0f6367839e82fc69c1ea63a6a

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

class CreateContributors < ActiveRecord::Migration
  def change
    create_table :contributors do |t|
      t.string :name
      t.references :personable, polymorphic: true

      t.timestamps
    end
    add_index :contributors, :personable_id
    add_index :contributors, :personable_type
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 db/migrate/20110629221035_create_contributors.rb