1
0

Added MeasurementRoutine as a nested Measurement model

Updated ItemsWithQuantities to work with MeasurementRoutine
Replaced ColumnViews HABTM with polymorphic HMT
Added Measurement notes
Added destroy restrictions on Quantity
Replaced BodyTrackingPluginController with Finders concern
Removed 'body_trackers' prefix from paths
Unified styling for textarea
This commit is contained in:
cryptogopher
2020-03-29 00:56:37 +01:00
parent e7a33c684f
commit 18419f1aeb
28 changed files with 260 additions and 243 deletions

View File

@@ -27,14 +27,8 @@ class CreateSchema < ActiveRecord::Migration
t.timestamps null: false
end
create_table :column_views do |t|
t.references :project
t.string :name
t.integer :domain
end
create_table :column_views_quantities do |t|
t.references :column_view
create_table :columns do |t|
t.references :column_view, polymorphic: true
t.references :quantity
end
@@ -66,10 +60,17 @@ class CreateSchema < ActiveRecord::Migration
t.timestamps null: false
end
create_table :measurements do |t|
create_table :measurement_routines do |t|
t.references :project
t.string :name
t.text :description
t.timestamps null: false
end
create_table :measurements do |t|
t.references :routine
t.references :source
t.text :notes
t.timestamp :taken_at
t.timestamps null: false
end