Sha256: 8e5f1efd2363f020fecc1d4b68a1baad03a1be61ae0758dcf0e40741eb338b18
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
class GroupifyMigration < ActiveRecord::Migration def change create_table :groups do |t| t.string :type end create_table :group_memberships do |t| t.references :member, polymorphic: true, index: true, null: false t.references :group, polymorphic: true, index: true # The named group to which a member belongs (if using) t.string :group_name, index: true # The membership type the member belongs with t.string :membership_type t.timestamps end end end
Version data entries
3 entries across 3 versions & 1 rubygems