Sha256: 2c803577047672c7829e30e362eb3df34c70efa05c1bf9ff747ae2c0e5d172c9

Contents?: true

Size: 217 Bytes

Versions: 8

Compression:

Stored size: 217 Bytes

Contents

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

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.1.5 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.1.4 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.1.2 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.1.1 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.1.0 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.0.1 test/db/migrate/20101210093949_create_posts.rb
has_eav-1.0.0 test/db/migrate/20101210093949_create_posts.rb