diff options
| author | Marius Peter <dev@marius-peter.com> | 2025-11-23 17:54:45 +0100 |
|---|---|---|
| committer | Marius Peter <dev@marius-peter.com> | 2025-11-23 17:54:45 +0100 |
| commit | fa77a691ce0cc8941fe470a762f352b27f4f0563 (patch) | |
| tree | 08916174840a7896fc59633cc59fab931e7012c2 /db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb | |
| parent | 73283f2f5153c77f72b6a29e98f173628f5e1057 (diff) | |
Diffstat (limited to 'db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb')
| -rw-r--r-- | db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb b/db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb index 5b46df1..4273204 100644 --- a/db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb +++ b/db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb @@ -1,10 +1,6 @@ class RenameCropsToNutrientProfiles < ActiveRecord::Migration[8.0] def change rename_table :crops, :nutrient_profiles - - rename_column :rafts, :crop_id, :crop_nutrient_need_id - add_index :rafts, :crop_nutrient_need_id unless index_exists?(:rafts, :crop_nutrient_need_id) - remove_column :nutrient_profiles, :crop_type end end |