Skip to content

Commit

Permalink
new statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticart committed Mar 30, 2012
1 parent bcdc242 commit bf322c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions db/migrate/20120329225208_update_new_statuses.rb
@@ -0,0 +1,15 @@
class UpdateNewStatuses < ActiveRecord::Migration
def up
"Curt Schilling, Marty Barrett, Joe Dobson, Dutch Leonard, Ellis Burks".split(', ').each do |name|
Player.where(full_name: name).first.update_attributes!(hof_status: 'hof', induction_year: 2012)
end

"Curt Schilling, Ellis Burks, Jim Piersall, Wally Schang, Jesse Tannehill".split(', ').each do |name|
Player.where(full_name: name).first.update_attributes!(wwar_status: true, future_wwar: false)
end
end

def down
raise "oh no"
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
@@ -1,3 +1,4 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
Expand All @@ -10,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.


ActiveRecord::Schema.define(:version => 20120324171439) do ActiveRecord::Schema.define(:version => 20120329225208) do


create_table "players", :force => true do |t| create_table "players", :force => true do |t|
t.string "first_name" t.string "first_name"
Expand Down

0 comments on commit bf322c1

Please sign in to comment.