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