Sha256: 179a7a63a787e97820241869b904563f727ee41c7854059dd84e9ebdba4f142f

Contents?: true

Size: 382 Bytes

Versions: 32

Compression:

Stored size: 382 Bytes

Contents

module Blog::Models
  class CreatePost < V 1.0
    def self.up
      create_table :blog_posts do |t|
        t.column :id      , :integer  , :null => false
        t.column :user_id , :integer  , :null => false
        t.column :title   , :string   , :limit => 255
        t.column :body    , :text
      end
    end
    def self.down
      drop_table :blog_posts
    end
  end
end

Version data entries

32 entries across 21 versions & 1 rubygems

Version Path
bivouac-0.0.6 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.7 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.3 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.3 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.4 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.4 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.5 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.5 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.6 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.7 examples/blog_erb/db/migrate/post.rb
bivouac-0.1.1 examples/blog_erb/db/migrate/post.rb
bivouac-0.1.1 examples/blog_goh/db/migrate/post.rb
bivouac-0.1.0 examples/blog_goh/db/migrate/post.rb
bivouac-0.1.0 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.8 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.8 examples/blog_goh/db/migrate/post.rb
bivouac-0.0.9 examples/blog_erb/db/migrate/post.rb
bivouac-0.0.9 examples/blog_goh/db/migrate/post.rb
bivouac-0.1.2 examples/blog_erb/db/migrate/post.rb
bivouac-0.1.2 examples/blog_goh/db/migrate/post.rb