class CreateContentAssignments < ActiveRecord::Migration def self.up create_table :content_assignments do |t| t.string :title t.integer :ancestor_id # parent_id t.integer :target_id # content_id t.string :ancestor_as t.string :target_as t.integer :lft t.integer :rgt t.integer :position t.boolean :directed t.references :user t.references :site t.references :section t.integer :approved, :null => false, :default => 0 t.string :content_template t.timestamps end end def self.down drop_table :content_assignments end end