Sha256: 7c4825d2e723406ddb8dea307cfe2837fa6371f9cf3508443bc309bc8e7c3799

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

class CreateAdhocracyMemberships < ActiveRecord::Migration
  def change
    create_table :adhocracy_memberships do |t|
      t.string :member_type
      t.integer :member_id
      t.string :group_type
      t.integer :group_id

      t.timestamps
    end

    add_index :adhocracy_memberships,
      [:member_id, :member_type],
      name: "adhocracy_memberships_on_member"
    add_index :adhocracy_memberships,
      [:group_id, :group_type],
      name: "adhocracy_memberships_on_group"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhocracy-0.2.0 db/migrate/20140306214416_create_adhocracy_memberships.rb