Class: AddPublishedToCargoWikiArticles

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/cargo_wiki/templates/add_published_to_cargo_wiki_articles.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
# File 'lib/generators/cargo_wiki/templates/add_published_to_cargo_wiki_articles.rb', line 2

def change
  add_column :cargo_wiki_articles, :published, :boolean, :default => true
end