Sha256: 9f7a6f1a73fa9aabcb775420bf5f67cf1d7e810123f1dd5c2a18ef1e383fb858
Contents?: true
Size: 512 Bytes
Versions: 20
Compression:
Stored size: 512 Bytes
Contents
class CreatePlayersMigration < ActiveRecord::Migration def self.up create_table(:players) do |t| t.timestamps t.datetime(:deleted_at) t.integer(:team_id) t.string(:name, :limit => 100, :null => false) t.string(:position, :limit => 50) t.integer(:number, :null => false) t.boolean(:retired, :default => false) t.boolean(:injured, :default => false) t.date(:born_on) t.text(:notes) end end def self.down drop_table(:players) end end
Version data entries
20 entries across 20 versions & 1 rubygems