Sha256: 6efcdac783615f1b7ca0ebbc1541bad3d46c2f423010b9bf85389b8a81c55cf9
Contents?: true
Size: 455 Bytes
Versions: 31
Compression:
Stored size: 455 Bytes
Contents
class ChangeDivisionPrimaryKey < ActiveRecord::Migration def up drop_table :divisions create_table :divisions, :primary_key => 'custom_id' do |t| t.timestamps t.integer :league_id t.string :name, :limit => 50, :null => false end end def down drop_table :divisions create_table :divisions do |t| t.timestamps t.integer :league_id t.string :name, :limit => 50, :null => false end end end
Version data entries
31 entries across 31 versions & 6 rubygems