1
0

Added ColumnView model

cmd:
rails generate redmine_plugin_model body_tracking column_view
project:references name:string domain:integer
rails generate migration CreateQuantitiesColumnViews quantity:references
column_view:references
This commit is contained in:
cryptogopher 2019-12-14 19:48:52 +01:00
parent 925def1674
commit ccf26d1830
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,2 @@
class ColumnView < ActiveRecord::Base
end

View File

@ -21,6 +21,17 @@ 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 :quantities_column_views do |t|
t.references :quantity
t.references :column_view
end
create_table :sources do |t|
t.references :project
t.string :name

View File

@ -0,0 +1,9 @@
require File.expand_path('../../test_helper', __FILE__)
class ColumnViewTest < ActiveSupport::TestCase
# Replace this with your real tests.
def test_truth
assert true
end
end