diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-22 07:08:23 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-22 07:08:23 -0500 |
commit | 2a9b798f9e122582abb36605a7d4a1da0e70eca9 (patch) | |
tree | 45fe362d677cb243fba57dc7c0c23d01e653863e /db/migrate/20130222092313_create_group_permissions.rb | |
parent | d6009d77ffa221c14a4536be98a04e8e4b6474a9 (diff) |
pickup group permission model added
Diffstat (limited to 'db/migrate/20130222092313_create_group_permissions.rb')
-rw-r--r-- | db/migrate/20130222092313_create_group_permissions.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20130222092313_create_group_permissions.rb b/db/migrate/20130222092313_create_group_permissions.rb new file mode 100644 index 0000000..5949819 --- /dev/null +++ b/db/migrate/20130222092313_create_group_permissions.rb @@ -0,0 +1,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 |