aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/db/migrate/20110901012504_create_posts.rb
blob: d45a96152356a04986437b1b42119ff1c4e9e9c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :name
      t.string :title
      t.text :content

      t.timestamps
    end
  end
end