diff --git a/app/models/glossary_term.rb b/app/models/glossary_term.rb new file mode 100644 index 0000000..778725a --- /dev/null +++ b/app/models/glossary_term.rb @@ -0,0 +1,2 @@ +class GlossaryTerm < ActiveRecord::Base +end diff --git a/db/migrate/001_create_glossary_terms.rb b/db/migrate/001_create_glossary_terms.rb new file mode 100644 index 0000000..58968a9 --- /dev/null +++ b/db/migrate/001_create_glossary_terms.rb @@ -0,0 +1,10 @@ +class CreateGlossaryTerms < ActiveRecord::Migration[5.1] + def change + create_table :glossary_terms do |t| + t.string :name, null: false + t.text :description + + t.timestamps null: false + end + end +end diff --git a/test/unit/glossary_term_test.rb b/test/unit/glossary_term_test.rb new file mode 100644 index 0000000..b142feb --- /dev/null +++ b/test/unit/glossary_term_test.rb @@ -0,0 +1,9 @@ +require File.expand_path('../../test_helper', __FILE__) + +class GlossaryTermTest < ActiveSupport::TestCase + + # Replace this with your real tests. + def test_truth + assert true + end +end