![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 86
mypages
这个作者很懒,什么都没留下…
展开
-
ActiveRecord::Migration
Migrations can manage the evolution of a schema used by several physical databases. It‘s a solution to the common problem of adding a field to make a new feature work in your local database, but be...原创 2008-12-13 18:59:11 · 252 阅读 · 0 评论 -
rails2.0应用创建(3)数据迁移
1、抽象层上看看 migration 迁移: 需要更改数据库结构,我们便创建一个数据库 migration 迁移, 将这个 migration 迁移放在一个单独的文件内 ,在迁移内(用一定的格式)描述数据库更改的内容 ,并 将迁移与另外的应用程序文件一起放在版本控制下。然后对数据库使用这个 migration 迁移(执行迁移),结果数据库结构被更改...原创 2008-12-22 00:59:53 · 117 阅读 · 0 评论