diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-26 17:26:27 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-26 17:26:27 -0300 |
commit | 772c57182dcd6fb1d223369f1531ef48813cdac0 (patch) | |
tree | 7727e64c94b8669596d3f0e464ad33322fc31866 /guides/code/getting_started/db/migrate/20130122042648_create_articles.rb | |
parent | 49f03a77ed3ed286daeb440603ac799037b66c33 (diff) | |
parent | 45072f34d27bda34b182f14f8b02d778d1648cce (diff) | |
download | rails-772c57182dcd6fb1d223369f1531ef48813cdac0.tar.gz rails-772c57182dcd6fb1d223369f1531ef48813cdac0.tar.bz2 rails-772c57182dcd6fb1d223369f1531ef48813cdac0.zip |
Merge pull request #15323 from JohnKellyFerguson/getting-started-app
Docs: Rename Posts to Articles in Guides' Getting Started App
Diffstat (limited to 'guides/code/getting_started/db/migrate/20130122042648_create_articles.rb')
-rw-r--r-- | guides/code/getting_started/db/migrate/20130122042648_create_articles.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb new file mode 100644 index 0000000000..6bb255e89f --- /dev/null +++ b/guides/code/getting_started/db/migrate/20130122042648_create_articles.rb @@ -0,0 +1,10 @@ +class CreateArticles < ActiveRecord::Migration + def change + create_table :articles do |t| + t.string :title + t.text :text + + t.timestamps + end + end +end |