我有以下 Rails 迁移:
class AddTextToReference < ActiveRecord::Migration
def change
add_column :references, :source_text, :text
end
end
我现在意识到:source_text也需要设置为:limit => nil.
如何添加:source_text到我的架构而不丢失存储在我的:source_text列中的数据?
我在本地使用 PostgreSQL 并在 Heroku 上进行生产。