Sha256: d291c63e166eaf3dc3c912ed101b7ed59de959d5112bd9778c3d614493fb9e09

Contents?: true

Size: 233 Bytes

Versions: 3

Compression:

Stored size: 233 Bytes

Contents

class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.column :author_id,  :integer
      t.column :content,    :text
    end
  end
  
  def self.down
    drop_table :articles
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polymorphic_identity-0.0.2 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.0.3 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.0.1 test/app_root/db/migrate/002_create_articles.rb