[phase-1]generate model GlossaryTerm

This commit is contained in:
Toru Takahashi 2018-04-30 22:28:18 +09:00 committed by TAKAHASHI,Toru
parent fccc7d7bc8
commit 5785342c51
3 changed files with 21 additions and 0 deletions

View File

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

View File

@ -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

View File

@ -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