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:
parent
925def1674
commit
ccf26d1830
2
app/models/column_view.rb
Normal file
2
app/models/column_view.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
class ColumnView < ActiveRecord::Base
|
||||||
|
end
|
@ -21,6 +21,17 @@ class CreateSchema < ActiveRecord::Migration
|
|||||||
t.timestamps null: false
|
t.timestamps null: false
|
||||||
end
|
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|
|
create_table :sources do |t|
|
||||||
t.references :project
|
t.references :project
|
||||||
t.string :name
|
t.string :name
|
||||||
|
9
test/unit/column_view_test.rb
Normal file
9
test/unit/column_view_test.rb
Normal 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
|
Reference in New Issue
Block a user