Sha256: 566481c78755dee5220cb1c01562b5d95ac5559209cb8f7ba8cf49458235529a
Contents?: true
Size: 339 Bytes
Versions: 17
Compression:
Stored size: 339 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 add_index :divisions, :league_id add_index :divisions, :name end def self.down drop_table :divisions end end
Version data entries
17 entries across 17 versions & 2 rubygems