diff options
Diffstat (limited to 'guides/code/getting_started/db/migrate/20130122042648_create_posts.rb')
-rw-r--r-- | guides/code/getting_started/db/migrate/20130122042648_create_posts.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb b/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb new file mode 100644 index 0000000000..602bef31ab --- /dev/null +++ b/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb @@ -0,0 +1,10 @@ +class CreatePosts < ActiveRecord::Migration + def change + create_table :posts do |t| + t.string :title + t.text :text + + t.timestamps + end + end +end |