In Files

Parent

Methods

Class Index [+]

Quicksearch

WPB::AddType

Public Class Methods

down() click to toggle source
    # File lib/wpb.rb, line 24
24:           def self.down
25:             remove_column :wp_posts, :type
26:           end
up() click to toggle source
    # File lib/wpb.rb, line 15
15:                 def self.up
16:                         suppress_messages do
17:                                 unless column_exists? :wp_posts, :type
18:                                         add_column :wp_posts, :type, :string
19:                                         PagePost.reset_column_information
20:                                 end
21:                         end
22:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.