Sha256: bc2928e36d35e024040ded845f89efdbcf1ed64868ea40cc3d48006562019c11
Contents?: true
Size: 392 Bytes
Versions: 38
Compression:
Stored size: 392 Bytes
Contents
class CreateSchools < ActiveRecord::Migration def change create_table :schools, options: 'DEFAULT CHARSET=utf8' do |t| t.string :name t.references :school_category, index: true, null: false t.string :district t.text :description t.timestamps end add_index :schools, [:name, :school_category_id, :district], name: "name_category_district" end end
Version data entries
38 entries across 38 versions & 1 rubygems