Sha256: b6acf7424323b68219de26da7973deaf8352647df8c4c4cedc7a0c47f87207f3

Contents?: true

Size: 236 Bytes

Versions: 3

Compression:

Stored size: 236 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.string :title
      t.text :body
      t.string :author

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
track_changes-0.5.0 test/rails_root/db/migrate/20100115021151_create_posts.rb
track_changes-0.4.1 test/rails_root/db/migrate/20100115021151_create_posts.rb
track_changes-0.4.0 test/rails_root/db/migrate/20100115021151_create_posts.rb