Sha256: 2710293441b7ca6064c9ba453cee4ed79f47acedcef087bd41e15ba3b8f1e155
Contents?: true
Size: 574 Bytes
Versions: 6
Compression:
Stored size: 574 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, :null => false) 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
6 entries across 6 versions & 1 rubygems