I created 'Country' table with following columns in rails:
Country
id
country_code
name
prefix
url
Then, updated column names in phppgadmin and now table looks like:
Country
id
country_id
country_name
country_iso
url
But, in rails i have schema still as:
create_table "countries", force: true do |t|
t.integer "country_code"
t.string "name"
t.string "prefix"
t.string "url"
t.datetime "created_at"
t.datetime "updated_at"
end
How to update the changes made from phppgadmin to my rails app.
PS: I am beginner in rails. Please help me if i am following any wrong approach. Thanks.