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

Version Path
merb-admin-0.8.1 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.8.0 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.6 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.5 spec/migrations/active_record/004_create_players_migration.rb
merb-admin-0.7.4 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.3 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.2 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.1 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.7.0 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.9 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.8 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.7 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.6 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.5 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.4 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.3 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.2 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.1 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.6.0 spec/migrations/activerecord/004_create_players_migration.rb
merb-admin-0.5.7 spec/migrations/activerecord/004_create_players_migration.rb