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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user