Sha256: 00df093c900d2b075012e2586b1a70cb60334d817f7ae6bba5a88f09da455a0f
Contents?: true
Size: 510 Bytes
Versions: 15
Compression:
Stored size: 510 Bytes
Contents
class RenameCategoryAssignmentToCategorization < ActiveRecord::Migration def self.up rename_table :category_assignments, :categorizations rename_column :categorizations, :content_type, :categorizable_type rename_column :categorizations, :content_id, :categorizable_id end def self.down rename_column :categorizations, :categorizable_id, :content_id rename_column :categorizations, :categorizable_type, :content_type rename_table :categorizations, :category_assignments end end
Version data entries
15 entries across 15 versions & 2 rubygems