Sha256: 6828c4e2289bae7eb89cd221ce81857eff7c98c5ea0632bafe76fee3c123dafc

Contents?: true

Size: 224 Bytes

Versions: 3

Compression:

Stored size: 224 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polymorphic_identity-0.0.2 test/app_root/db/migrate/003_create_pages.rb
polymorphic_identity-0.0.3 test/app_root/db/migrate/003_create_pages.rb
polymorphic_identity-0.0.1 test/app_root/db/migrate/003_create_pages.rb