Sha256: 684662d1436c78eb5caa554251db20008e85a38765003371f9e4339e8435be5b
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 Bytes
Contents
class CreateDivisionsMigration < ActiveRecord::Migration def self.up create_table(:divisions) do |t| t.timestamps t.integer(:league_id) t.string(:name, :limit => 50, :null => false) end end def self.down drop_table(:divisions) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-admin-0.8.5 | spec/migrations/activerecord/001_create_divisions_migration.rb |
merb-admin-0.8.3 | spec/migrations/activerecord/001_create_divisions_migration.rb |