Sha256: 10d6e50134a3a4bf7755595fac54a48dbca0053a5b5a0608aca73ba3de3295cf

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def self.up
    create_table :posts do |t|
      t.string :author
      t.string :title
      t.integer :year
      t.string :kind

      t.timestamps
    end
  end

  def self.down
    drop_table :posts
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap_helpers-0.0.9 test_app/db/migrate/20111117155440_create_posts.rb
bootstrap_helpers-0.0.8 test_app/db/migrate/20111117155440_create_posts.rb
bootstrap_helpers-0.0.7 test_app/db/migrate/20111117155440_create_posts.rb
bootstrap_helpers-0.0.5 test_app/db/migrate/20111117155440_create_posts.rb
bootstrap_helpers-0.0.3 test_app/db/migrate/20111117155440_create_posts.rb