summaryrefslogtreecommitdiff
path: root/db/migrate/20130222074652_create_group_memberships.rb
blob: e57244590d2354dd0ee8ad766d80fdf561f9511a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateGroupMemberships < ActiveRecord::Migration
  def self.up
    create_table :group_memberships do |t|
      t.integer :group_id
      t.string :item_type
      t.integer :item_id
      t.timestamps
    end
  end

  def self.down
    drop_table :group_memberships
  end
end