Skip to content
Browse files

new statuses

  • Loading branch information...
1 parent bcdc242 commit bf322c1bc2aa84ede363951b031d8767ed939ea4 @semanticart semanticart committed
Showing with 17 additions and 1 deletion.
  1. +15 −0 db/migrate/20120329225208_update_new_statuses.rb
  2. +2 −1 db/schema.rb
View
15 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
View
3 db/schema.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
# 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
# incrementally modify your database, and then regenerate this schema definition.
@@ -10,7 +11,7 @@
#
# 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|
t.string "first_name"

0 comments on commit bf322c1

Please sign in to comment.
Something went wrong with that request. Please try again.