1
0

Added Quantities model and controller

commands:
rails generate redmine_plugin_model body_tracking quantity
rails generate redmine_plugin_controller body_tracking quantities index
create destroy
This commit is contained in:
cryptogopher
2019-08-23 00:01:10 +02:00
parent f9c5e6d40d
commit 9a34cc0b95
9 changed files with 42 additions and 0 deletions

View File

@@ -6,6 +6,13 @@ class CreateUnits < ActiveRecord::Migration
t.string :shortname
end
create_table :quantities do |t|
t.references :project
t.string :name
t.string :description
t.integer :domain
end
reversible do |dir|
dir.up do
Unit.create project: nil, shortname: "%", name: "percent"