diff --git a/app/models/unit.rb b/app/models/unit.rb new file mode 100644 index 0000000..ee09039 --- /dev/null +++ b/app/models/unit.rb @@ -0,0 +1,2 @@ +class Unit < ActiveRecord::Base +end diff --git a/db/migrate/001_create_units.rb b/db/migrate/001_create_units.rb new file mode 100644 index 0000000..48d3f65 --- /dev/null +++ b/db/migrate/001_create_units.rb @@ -0,0 +1,9 @@ +class CreateUnits < ActiveRecord::Migration + def change + create_table :units do |t| + t.string :name + t.string :shortname + t.integer :type + end + end +end diff --git a/test/unit/unit_test.rb b/test/unit/unit_test.rb new file mode 100644 index 0000000..02f53bd --- /dev/null +++ b/test/unit/unit_test.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../test_helper', __FILE__) + +class UnitTest < ActiveSupport::TestCase + + # Replace this with your real tests. + def test_truth + assert true + end +end