diff --git a/cookbook/015/hodgepodge/app/models/person.rb b/cookbook/015/hodgepodge/app/models/person.rb new file mode 100644 index 0000000..2f2e286 --- /dev/null +++ b/cookbook/015/hodgepodge/app/models/person.rb @@ -0,0 +1,2 @@ +class Person < ActiveRecord::Base +end diff --git a/cookbook/015/hodgepodge/db/migrate/20110810010431_create_people.rb b/cookbook/015/hodgepodge/db/migrate/20110810010431_create_people.rb new file mode 100644 index 0000000..e1aa6dd --- /dev/null +++ b/cookbook/015/hodgepodge/db/migrate/20110810010431_create_people.rb @@ -0,0 +1,12 @@ +class CreatePeople < ActiveRecord::Migration + def self.up + create_table :people do |t| + + t.timestamps + end + end + + def self.down + drop_table :people + end +end diff --git a/cookbook/015/hodgepodge/test/fixtures/people.yml b/cookbook/015/hodgepodge/test/fixtures/people.yml new file mode 100644 index 0000000..2893341 --- /dev/null +++ b/cookbook/015/hodgepodge/test/fixtures/people.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/cookbook/015/hodgepodge/test/unit/person_test.rb b/cookbook/015/hodgepodge/test/unit/person_test.rb new file mode 100644 index 0000000..8e9c555 --- /dev/null +++ b/cookbook/015/hodgepodge/test/unit/person_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class PersonTest < ActiveSupport::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end