Sha256: c79b6709f0a52efb7087957e31e6fb3a013f74b58d4378ef7841236e385ee91d
Contents?: true
Size: 653 Bytes
Versions: 17
Compression:
Stored size: 653 Bytes
Contents
class CreateCoalescingPandaGroupCategories < CoalescingPanda::MiscHelper::MigrationClass def change create_table :coalescing_panda_group_categories do |t| t.belongs_to :context, polymorphic: true t.string :context_type t.integer :canvas_group_category_id t.string :name t.timestamps end add_index :coalescing_panda_group_categories, [:context_id, :context_type], name: :index_group_categories_context_and_context_type add_column :coalescing_panda_assignments, :coalescing_panda_group_category_id, :integer add_column :coalescing_panda_groups, :coalescing_panda_group_category_id, :integer end end
Version data entries
17 entries across 17 versions & 1 rubygems