Sha256: 467be787e1d3f94e47bb80395f0887270e32ded5e87e8c3d529a55750e4108f9

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

class CreatePosts < ActiveRecord::Migration

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

    def down
      drop_table :posts
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolita-editable-list-0.1.2 spec/test_orm/db/migrate/01_create_posts.rb