A “column” is a column in a database table, while “attribute (s)” are the external visible edges of an object.
The “attribute” is for the model, and the “column” is for the table in the database.
Here is the diagram for the model:
create_table "retreats", force: :cascade do |t|
t.string "title"
t.string "tagline"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
Here "retreats" is a table in the database with the following columns: "title", "tagline", "created_at", "updated_at".
Retreat, "title", "tagline", "created_at" "updated_at". .
, - .
1:
Rails. .
vojic , .