Sha256: 1ce034b027ad1d577a828b478d1d8abdb83bf67c2a6d9fddafefa670167b338c
Contents?: true
Size: 407 Bytes
Versions: 6
Compression:
Stored size: 407 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.integer :colors end add_index :teams, :division_id add_index :teams, :league_id add_index :teams, :name end def self.down drop_table :teams end end
Version data entries
6 entries across 6 versions & 2 rubygems