Class: AddAuthorIdToArticles

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

Instance Method Summary collapse

Instance Method Details

#changeObject



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

def change
  add_column :cargo_wiki_articles, :author_id, :integer
end