Sha256: 6c43fbfdc94b6f718d646408885f7f4c60f5c184cf4ffbf8ff7845d1d2d8ab58

Contents?: true

Size: 246 Bytes

Versions: 7

Compression:

Stored size: 246 Bytes

Contents

class CreatePagesTable < ActiveRecord::Migration
  def up
    create_table :pages do |t|
      t.string      :title
      t.text        :body
      t.references  :user

      t.timestamps
    end
  end

  def down
    drop_table :pages
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
private_person-0.5.0 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.4.0 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.3.1 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.3.0 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.2.9 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.2.4 spec/dummy/db/migrate/20130906213612_create_pages_table.rb
private_person-0.1.0 spec/dummy/db/migrate/20130906213612_create_pages_table.rb