diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 12:22:29 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-27 12:22:29 +0100 |
commit | 67c1a0a951403a546250ea860a3e3d199cae2fce (patch) | |
tree | f86ec6cedf081a1a57005eca1661e9bead34e4de /db/migrate/20130222074652_create_group_memberships.rb | |
parent | 5d8ce5f4775ac8bc5f523964e6e36f63ff3c4683 (diff) | |
parent | 211f558a86ae30cdd5b392ab1376e1393f97e22c (diff) |
Merge branch 'develop'5.1-beta6
Diffstat (limited to 'db/migrate/20130222074652_create_group_memberships.rb')
-rw-r--r-- | db/migrate/20130222074652_create_group_memberships.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20130222074652_create_group_memberships.rb b/db/migrate/20130222074652_create_group_memberships.rb new file mode 100644 index 0000000..e572445 --- /dev/null +++ b/db/migrate/20130222074652_create_group_memberships.rb @@ -0,0 +1,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 |