summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorMarius Peter <dev@marius-peter.com>2025-11-23 17:54:45 +0100
committerMarius Peter <dev@marius-peter.com>2025-11-23 17:54:45 +0100
commitfa77a691ce0cc8941fe470a762f352b27f4f0563 (patch)
tree08916174840a7896fc59633cc59fab931e7012c2 /db/migrate
parent73283f2f5153c77f72b6a29e98f173628f5e1057 (diff)
Last commit.HEADmaster
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20250820175727_create_nutrients.rb2
-rw-r--r--db/migrate/20250823142743_create_beds.rb11
-rw-r--r--db/migrate/20250823142858_create_rafts.rb13
-rw-r--r--db/migrate/20250901112954_rename_crops_to_nutrient_profiles.rb4
4 files changed, 0 insertions, 30 deletions
diff --git a/db/migrate/20250820175727_create_nutrients.rb b/db/migrate/20250820175727_create_nutrients.rb
index d054375..503df3f 100644
--- a/db/migrate/20250820175727_create_nutrients.rb
+++ b/db/migrate/20250820175727_create_nutrients.rb
@@ -3,8 +3,6 @@ class CreateNutrients < ActiveRecord::Migration[8.0]
create_table :nutrients do |t|
t.string :formula
t.string :name
-
- t.timestamps
end
end
end
diff --git a/db/migrate/20250823142743_create_beds.rb b/db/migrate/20250823142743_create_beds.rb
deleted file mode 100644
index 3c23ad7..0000000
--- a/db/migrate/20250823142743_create_beds.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class CreateBeds < ActiveRecord::Migration[8.0]
- def change
- create_table :beds do |t|
- t.integer :location, null: false
-
- t.timestamps
- end
-
- add_index :beds, :location, unique: true
- end
-end
diff --git a/db/migrate/20250823142858_create_rafts.rb b/db/migrate/20250823142858_create_rafts.rb
deleted file mode 100644
index 6b7f006..0000000
--- a/db/migrate/20250823142858_create_rafts.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class CreateRafts < ActiveRecord::Migration[8.0]
- def change
- create_table :rafts do |t|
- t.references :bed, null: false, foreign_key: true
- t.integer :location, null: false
- t.references :crop, null: true, foreign_key: true
-
- t.timestamps
- end
-
- add_index :rafts, [ :bed_id, :location ], unique: true
- end
-end
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
Copyright 2019--2026 Marius PETER