Sha256: 657e2a88c2279925ac6bd04599baabf65d3c3ddf8c232c6aba7a8894c9cce3f9

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

class CreatePosts < ActiveRecord::Migration

  class << self
    def up
    	create_table :posts, :force=>true do |t|
			t.string :title
			t.text	 :body
		end
    end

    def down
      drop_table :posts
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolita-file-upload-0.2.1 test_orm/db/migrate/01_create_posts.rb
lolita-file-upload-0.2.0 test_orm/db/migrate/01_create_posts.rb