Sha256: dcd6d1d223dcc714397a0827c4b45d16375e379115d2dda4cda9a142d9d64b2b

Contents?: true

Size: 212 Bytes

Versions: 5

Compression:

Stored size: 212 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
pluginaweek-polymorphic_identity-0.1.0 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.1.1 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.0.5 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.1.0 test/app_root/db/migrate/002_create_articles.rb
polymorphic_identity-0.0.4 test/app_root/db/migrate/002_create_articles.rb