Skip to content

Commit

Permalink
Removed all db field size limits.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunn committed Mar 29, 2011
1 parent 4fcb6b9 commit f65cadf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion db/migrate/00000000000001_create_divisions_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def self.up
create_table :divisions do |t|
t.timestamps
t.integer :league_id
t.string :name, :limit => 50, :null => false
t.string :name, :null => false
end
end

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/00000000000002_create_drafts_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.up
t.integer :round
t.integer :pick
t.integer :overall
t.string :college, :limit => 100
t.string :college
t.text :notes
end
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/00000000000003_create_leagues_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class CreateLeaguesMigration < ActiveRecord::Migration
def self.up
create_table :leagues do |t|
t.timestamps
t.string :name, :limit => 50, :null => false
t.string :name, :null => false
end
end

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/00000000000004_create_players_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def self.up
t.timestamps
t.datetime :deleted_at
t.integer :team_id
t.string :name, :limit => 100, :null => false
t.string :name, :null => false
t.string :position
t.integer :number, :null => false
t.boolean :retired, :default => false
Expand Down
8 changes: 4 additions & 4 deletions db/migrate/00000000000005_create_teams_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ def self.up
t.integer :league_id
t.integer :division_id
t.string :name
t.string :logo_url, :limit => 255
t.string :manager, :limit => 100, :null => false
t.string :ballpark, :limit => 100
t.string :mascot, :limit => 100
t.string :logo_url
t.string :manager, :null => false
t.string :ballpark
t.string :mascot
t.integer :founded
t.integer :wins
t.integer :losses
Expand Down
4 changes: 2 additions & 2 deletions db/migrate/00000000000007_create_histories_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def self.up
t.string :username
t.integer :item
t.string :table
t.integer :month, :limit => 2
t.integer :year, :limit => 5
t.integer :month
t.integer :year
t.timestamps
end
add_index(:histories, [:item, :table, :month, :year])
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/00000000000008_create_fans_migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class CreateFansMigration < ActiveRecord::Migration
def self.up
create_table :fans do |t|
t.timestamps
t.string :name, :limit => 100, :null => false
t.string :name, :null => false
end
end

Expand Down

0 comments on commit f65cadf

Please sign in to comment.