mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 07:48:29 +00:00
Wrestler pool number is now saved in db. Pool number generation moved to it's own class.
This commit is contained in:
5
db/migrate/20170301174920_add_pool_column.rb
Normal file
5
db/migrate/20170301174920_add_pool_column.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddPoolColumn < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :wrestlers, :pool, :integer
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160126173424) do
|
||||
ActiveRecord::Schema.define(version: 20170301174920) do
|
||||
|
||||
create_table "delayed_jobs", force: :cascade do |t|
|
||||
t.integer "priority", default: 0, null: false
|
||||
@@ -154,6 +154,7 @@ ActiveRecord::Schema.define(version: 20160126173424) do
|
||||
t.string "criteria"
|
||||
t.boolean "extra"
|
||||
t.decimal "offical_weight"
|
||||
t.integer "pool"
|
||||
end
|
||||
|
||||
add_index "wrestlers", ["weight_id"], name: "index_wrestlers_on_weight_id"
|
||||
|
||||
Reference in New Issue
Block a user