summaryrefslogtreecommitdiff
path: root/db/migrate/20130222092313_create_group_permissions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20130222092313_create_group_permissions.rb')
-rw-r--r--db/migrate/20130222092313_create_group_permissions.rb14
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