class CreateContentParts < ActiveRecord::Migration def self.up create_table :content_parts do |t| t.integer :user_id t.text :title, :null => false, :limit => 128 t.text :body t.text :body_raw t.text :excerpt t.string :permalink, :limit => 128 t.integer :weight, :default => 0 t.datetime :published_at t.timestamps end end def self.down drop_table :content_parts end end