Sha256: 434fb2ce44797ac1cbcf777e88cff53199bbfd94de15fa8019052b8bd1555784

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.integer :user_id
      t.string :title
      t.text :body
      t.string :status
      t.string :filename

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puffer-0.0.25 spec/dummy/db/migrate/20100930132656_create_posts.rb
puffer-0.0.24 spec/dummy/db/migrate/20100930132656_create_posts.rb