Sha256: fc3175ff0365722eff0046b4493856eb6df99f9b8fd454c76598f82bd2210bcb
Contents?: true
Size: 325 Bytes
Versions: 22
Compression:
Stored size: 325 Bytes
Contents
class CreateDivisions < Sequel::Migration def up create_table(:divisions) do primary_key(:id) DateTime(:created_at) DateTime(:updated_at) foreign_key(:league_id, :table => :leagues) String(:name, :limit => 50, :null => false) end end def down drop_table(:divisions) end end
Version data entries
22 entries across 22 versions & 1 rubygems