Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
seanreads committed Dec 7, 2011
1 parent 52913b4 commit fed8579
Show file tree
Hide file tree
Showing 24 changed files with 403 additions and 290 deletions.
3 changes: 0 additions & 3 deletions app/models/engine_supplier.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/qualifying_session.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/models/race.rb

This file was deleted.

1 change: 1 addition & 0 deletions app/models/race_meeting.rb
@@ -1,3 +1,4 @@
class RaceMeeting < ActiveRecord::Base
belongs_to :season
has_many :race_sessions
end
4 changes: 4 additions & 0 deletions config/initializers/inflections.rb
Expand Up @@ -8,3 +8,7 @@
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'chassis', 'chassis'
end
4 changes: 2 additions & 2 deletions db/migrate/20111117202131_create_seasons.rb
Expand Up @@ -2,8 +2,8 @@ class CreateSeasons < ActiveRecord::Migration
def change
create_table :seasons do |t|
t.string :name
t.start_date :date
t.end_date :date
t.date :start_date
t.date :end_date
t.timestamps
end
end
Expand Down
10 changes: 0 additions & 10 deletions db/migrate/20111117203054_create_races.rb

This file was deleted.

@@ -1,6 +1,6 @@
class CreateChasses < ActiveRecord::Migration
def change
create_table :chasses do |t|
create_table :chassis do |t|
t.integer :team_id
t.string :name
t.timestamps
Expand Down
11 changes: 0 additions & 11 deletions db/migrate/20111117203233_create_qualifying_sessions.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20111117204356_add_season_id_to_race.rb

This file was deleted.

11 changes: 0 additions & 11 deletions db/migrate/20111207152343_drop_cars_table.rb

This file was deleted.

8 changes: 0 additions & 8 deletions db/migrate/20111207152836_create_engine_suppliers.rb

This file was deleted.

1 change: 1 addition & 0 deletions db/migrate/20111207152907_create_engines.rb
@@ -1,6 +1,7 @@
class CreateEngines < ActiveRecord::Migration
def change
create_table :engines do |t|
t.integer :team_id
t.integer :supplier_id
t.timestamps
end
Expand Down
4 changes: 2 additions & 2 deletions doc/controllers_brief.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions doc/controllers_complete.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
160 changes: 118 additions & 42 deletions doc/models_brief.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fed8579

Please sign in to comment.