summaryrefslogtreecommitdiff
path: root/db/migrate/20130222092313_create_group_permissions.rb
blob: 594981932470a24506982e85d7fb69ac37ea2170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateGroupPermissions < ActiveRecord::Migration
  def self.up
    create_table :group_permissions do |t|
      t.integer :group_id
      t.string :permission
      t.integer :target_group_id
      t.timestamps
    end
  end

  def self.down
    drop_table :group_permissions
  end
end