Sha256: 33690b1515702b069b901d16ad2088f94ec9b86a3743ed6348ef5efac70d4ec4
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 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
4 entries across 4 versions & 1 rubygems