diff --git a/app/models/question.rb b/app/models/question.rb new file mode 100644 index 0000000..0ba7683 --- /dev/null +++ b/app/models/question.rb @@ -0,0 +1,2 @@ +class Question < ActiveRecord::Base +end diff --git a/db/migrate/20140227235855_create_questions.rb b/db/migrate/20140227235855_create_questions.rb new file mode 100644 index 0000000..ea0b15b --- /dev/null +++ b/db/migrate/20140227235855_create_questions.rb @@ -0,0 +1,9 @@ +class CreateQuestions < ActiveRecord::Migration + def change + create_table :questions do |t| + t.text :title + + t.timestamps + end + end +end diff --git a/test/fixtures/questions.yml b/test/fixtures/questions.yml new file mode 100644 index 0000000..c9f31e6 --- /dev/null +++ b/test/fixtures/questions.yml @@ -0,0 +1,7 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyText + +two: + title: MyText diff --git a/test/models/question_test.rb b/test/models/question_test.rb new file mode 100644 index 0000000..88f6ea7 --- /dev/null +++ b/test/models/question_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class QuestionTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end