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

      t.timestamps
    end
  end
end