Sha256: 54d1734d0a75b16ed19934472de3693d619160bfb1070c452b9ac0ffb3c8f6cd
Contents?: true
Size: 566 Bytes
Versions: 19
Compression:
Stored size: 566 Bytes
Contents
class CreatePlayers < Sequel::Migration def up create_table(:players) do primary_key(:id) DateTime(:created_at) DateTime(:updated_at) DateTime(:deleted_at) foreign_key(:team_id, :table => :teams) String(:name, :limit => 100, :null => false) String(:position, :limit => 50) Integer(:number, :null => false) TrueClass(:retired, :default => false) TrueClass(:injured, :default => false) Date(:born_on) String(:notes, :text=>true) end end def down drop_table(:players) end end
Version data entries
19 entries across 19 versions & 1 rubygems