diff --git a/cookbook/015/hodgepodge/app/models/user.rb b/cookbook/015/hodgepodge/app/models/user.rb new file mode 100644 index 0000000..4a57cf0 --- /dev/null +++ b/cookbook/015/hodgepodge/app/models/user.rb @@ -0,0 +1,2 @@ +class User < ActiveRecord::Base +end diff --git a/cookbook/015/hodgepodge/db/migrate/20110810013840_create_users.rb b/cookbook/015/hodgepodge/db/migrate/20110810013840_create_users.rb new file mode 100644 index 0000000..9199bb3 --- /dev/null +++ b/cookbook/015/hodgepodge/db/migrate/20110810013840_create_users.rb @@ -0,0 +1,12 @@ +class CreateUsers < ActiveRecord::Migration + def self.up + create_table :users do |t| + + t.timestamps + end + end + + def self.down + drop_table :users + end +end diff --git a/cookbook/015/hodgepodge/test/fixtures/users.yml b/cookbook/015/hodgepodge/test/fixtures/users.yml new file mode 100644 index 0000000..2893341 --- /dev/null +++ b/cookbook/015/hodgepodge/test/fixtures/users.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/user_test.rb b/cookbook/015/hodgepodge/test/unit/user_test.rb new file mode 100644 index 0000000..a64d2d3 --- /dev/null +++ b/cookbook/015/hodgepodge/test/unit/user_test.rb @@ -0,0 +1,8 @@ +require 'test_helper' + +class UserTest < ActiveSupport::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end