Browse files

Removed all db field size limits.

  • Loading branch information...
1 parent 4fcb6b9 commit f65cadfd66cd23420adf9ce19f9729062c9e6f5f @gunn committed Mar 29, 2011
View
2 db/migrate/00000000000001_create_divisions_migration.rb
@@ -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
View
2 db/migrate/00000000000002_create_drafts_migration.rb
@@ -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
View
2 db/migrate/00000000000003_create_leagues_migration.rb
@@ -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
View
2 db/migrate/00000000000004_create_players_migration.rb
@@ -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
View
8 db/migrate/00000000000005_create_teams_migration.rb
@@ -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
View
4 db/migrate/00000000000007_create_histories_table.rb
@@ -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])
View
2 db/migrate/00000000000008_create_fans_migration.rb
@@ -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

0 comments on commit f65cadf

Please sign in to comment.