【发布时间】:2015-08-01 22:52:07
【问题描述】:
我在 rails 中创建了 'Country' 表,其中包含以下列:
国家
身份证
国家代码
名称
前缀
网址
然后,更新了 phppgadmin 中的列名,现在表格看起来像:
国家
身份证
country_id
国家名称
country_iso
网址
但是,在 Rails 中,我的 schema 仍然是:
create_table "countries",强制:true do |t|
t.integer "country_code"
t.string "名称"
t.string "前缀"
t.string“网址”
t.datetime "created_at"
t.datetime "updated_at"
结束
如何将 phppgadmin 所做的更改更新到我的 rails 应用程序。
PS:我是 Rails 的初学者。如果我遵循任何错误的方法,请帮助我。谢谢。
【问题讨论】:
标签: postgresql ruby-on-rails-4