Sha256: 6ce212d7fbcaf023f4ef51de16831fd58c9dd18319a9ded44db44386fcea53ca

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

class UpdateDraftToBooleanOnPosts < ActiveRecord::Migration
  def up
    remove_column :wafflemix_posts, :draft
    add_column :wafflemix_posts, :draft, :boolean, :default => false, :null => false
  end

  def down
    remove_column :wafflemix_posts, :draft
    add_column :wafflemix_posts, :draft, :boolean
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wafflemix-0.0.6 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb
wafflemix-0.0.5 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb
wafflemix-0.0.4 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb
wafflemix-0.0.3 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb
wafflemix-0.0.2 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb
wafflemix-0.0.1 db/migrate/20121114135432_update_draft_to_boolean_on_posts.rb