Added condition for items and started with localize
This commit is contained in:
5
db/migrate/20260528181506_add_condition_to_items.rb
Normal file
5
db/migrate/20260528181506_add_condition_to_items.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddConditionToItems < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :items, :condition, :string, default: "unknown", null: false
|
||||
end
|
||||
end
|
||||
3
db/schema.rb
generated
3
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_05_21_125254) do
|
||||
ActiveRecord::Schema[8.1].define(version: 2026_05_28_181506) do
|
||||
create_table "assignment_logs", force: :cascade do |t|
|
||||
t.datetime "assigned_at"
|
||||
t.datetime "created_at", null: false
|
||||
@@ -50,6 +50,7 @@ ActiveRecord::Schema[8.1].define(version: 2026_05_21_125254) do
|
||||
|
||||
create_table "items", force: :cascade do |t|
|
||||
t.integer "category_id"
|
||||
t.string "condition", default: "unknown", null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.string "name"
|
||||
t.text "notes"
|
||||
|
||||
Reference in New Issue
Block a user