Revision: 69141 http://trac.macports.org/changeset/69141 Author: jrozner@macports.org Date: 2010-06-24 16:51:02 -0700 (Thu, 24 Jun 2010) Log Message: ----------- fixed spelling error for supplemental categories Modified Paths: -------------- branches/gsoc10-mpwa/db/schema.rb Added Paths: ----------- branches/gsoc10-mpwa/app/models/supplemental_category.rb branches/gsoc10-mpwa/db/migrate/20100624234814_fix_supplemental_category_name.rb branches/gsoc10-mpwa/test/fixtures/supplemental_categories.yml branches/gsoc10-mpwa/test/unit/supplemental_category_test.rb Removed Paths: ------------- branches/gsoc10-mpwa/app/models/supplimental_category.rb branches/gsoc10-mpwa/test/fixtures/supplimental_categories.yml branches/gsoc10-mpwa/test/unit/supplimental_category_test.rb Added: branches/gsoc10-mpwa/app/models/supplemental_category.rb =================================================================== --- branches/gsoc10-mpwa/app/models/supplemental_category.rb (rev 0) +++ branches/gsoc10-mpwa/app/models/supplemental_category.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -0,0 +1,3 @@ +class SupplimentalCategory < ActiveRecord::Base + belongs_to :port +end Deleted: branches/gsoc10-mpwa/app/models/supplimental_category.rb =================================================================== --- branches/gsoc10-mpwa/app/models/supplimental_category.rb 2010-06-24 23:46:40 UTC (rev 69140) +++ branches/gsoc10-mpwa/app/models/supplimental_category.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -1,3 +0,0 @@ -class SupplimentalCategory < ActiveRecord::Base - belongs_to :port -end Added: branches/gsoc10-mpwa/db/migrate/20100624234814_fix_supplemental_category_name.rb =================================================================== --- branches/gsoc10-mpwa/db/migrate/20100624234814_fix_supplemental_category_name.rb (rev 0) +++ branches/gsoc10-mpwa/db/migrate/20100624234814_fix_supplemental_category_name.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -0,0 +1,9 @@ +class FixSupplementalCategoryName < ActiveRecord::Migration + def self.up + rename_table :supplimental_categories, :supplemental_categories + end + + def self.down + rename_table :supplemental_categories, :supplimental_categories + end +end \ No newline at end of file Modified: branches/gsoc10-mpwa/db/schema.rb =================================================================== --- branches/gsoc10-mpwa/db/schema.rb 2010-06-24 23:46:40 UTC (rev 69140) +++ branches/gsoc10-mpwa/db/schema.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20100616213132) do +ActiveRecord::Schema.define(:version => 20100624234814) do create_table "categories", :force => true do |t| t.string "name" @@ -44,7 +44,7 @@ t.string "maintainers" end - create_table "supplimental_categories", :force => true do |t| + create_table "supplemental_categories", :force => true do |t| t.string "name" t.integer "port_id" t.datetime "created_at" Added: branches/gsoc10-mpwa/test/fixtures/supplemental_categories.yml =================================================================== --- branches/gsoc10-mpwa/test/fixtures/supplemental_categories.yml (rev 0) +++ branches/gsoc10-mpwa/test/fixtures/supplemental_categories.yml 2010-06-24 23:51:02 UTC (rev 69141) @@ -0,0 +1,9 @@ +# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html + +one: + name: MyString + port_id: 1 + +two: + name: MyString + port_id: 1 Deleted: branches/gsoc10-mpwa/test/fixtures/supplimental_categories.yml =================================================================== --- branches/gsoc10-mpwa/test/fixtures/supplimental_categories.yml 2010-06-24 23:46:40 UTC (rev 69140) +++ branches/gsoc10-mpwa/test/fixtures/supplimental_categories.yml 2010-06-24 23:51:02 UTC (rev 69141) @@ -1,9 +0,0 @@ -# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html - -one: - name: MyString - port_id: 1 - -two: - name: MyString - port_id: 1 Added: branches/gsoc10-mpwa/test/unit/supplemental_category_test.rb =================================================================== --- branches/gsoc10-mpwa/test/unit/supplemental_category_test.rb (rev 0) +++ branches/gsoc10-mpwa/test/unit/supplemental_category_test.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -0,0 +1,8 @@ +require 'test_helper' + +class SupplimentalCategoryTest < ActiveSupport::TestCase + # Replace this with your real tests. + test "the truth" do + assert true + end +end Deleted: branches/gsoc10-mpwa/test/unit/supplimental_category_test.rb =================================================================== --- branches/gsoc10-mpwa/test/unit/supplimental_category_test.rb 2010-06-24 23:46:40 UTC (rev 69140) +++ branches/gsoc10-mpwa/test/unit/supplimental_category_test.rb 2010-06-24 23:51:02 UTC (rev 69141) @@ -1,8 +0,0 @@ -require 'test_helper' - -class SupplimentalCategoryTest < ActiveSupport::TestCase - # Replace this with your real tests. - test "the truth" do - assert true - end -end
participants (1)
-
jrozner@macports.org