Sha256: fd0d336af7405b0c9ca53d668bbf9f94ece605799dceb93f1d3692de1d59404e
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
class CreateTeamsMigration < ActiveRecord::Migration def self.up create_table :teams do |t| t.timestamps t.integer :league_id t.integer :division_id t.string :name, limit: 50 t.string :logo_url, limit: 255 t.string :manager, limit: 100, null: false t.string :ballpark, limit: 100 t.string :mascot, limit: 100 t.integer :founded t.integer :wins t.integer :losses t.float :win_percentage end end def self.down drop_table :teams end end
Version data entries
4 entries across 4 versions & 1 rubygems