aboutsummaryrefslogblamecommitdiffstats
path: root/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb
blob: 6bb255e89f42e1ccb55bed4f963af6c68fe2058e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                              
            
                                 
                     
                  




                  
class CreateArticles < ActiveRecord::Migration
  def change
    create_table :articles do |t|
      t.string :title
      t.text :text

      t.timestamps
    end
  end
end