Sha256: 79051493105c6ff576731b750998d873d2f7844f4c38639742ca46ccd9d09546

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 Bytes

Contents

class AddFieldsToArticles < ActiveRecord::Migration
  def change
    add_column :goldencobra_articles, :active, :boolean, :default => true
    add_column :goldencobra_articles, :subtitle, :string
    add_column :goldencobra_articles, :summary, :text
    add_column :goldencobra_articles, :context_info, :text
    add_column :goldencobra_articles, :canonical_url, :string
  end
end

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
goldencobra-1.4.27 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.4.0 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.3.4 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.2.8 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.2.0 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.1.0 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.0.9.3 db/migrate/20120125145920_add_fields_to_articles.rb
goldencobra-1.0.9.3 lib/generators/goldencobra/templates/migrations/20120125145920_add_fields_to_articles.rb