Sha256: 029ce6e15f82e382e9ade83d3239387b2767d6b2b0467fbe5efa03d5deb40d20
Contents?: true
Size: 782 Bytes
Versions: 689
Compression:
Stored size: 782 Bytes
Contents
class CreateLanguages < ActiveRecord::Migration # ISO 639 is the set of international standards that lists short codes for language names. # Note this doesn't include macrolanguages (dialects) # Information on macrolanguages http://en.wikipedia.org/wiki/ISO_639_macrolanguage def change create_table :languages do |t| t.string :name, :null => false t.string :native_name t.text :display_name t.string :iso_639_1, :size => 3 t.string :iso_639_2, :size => 3 t.string :iso_639_3, :size => 3 t.text :note t.integer :position end add_index :languages, :name, :unique => true add_index :languages, :iso_639_1 add_index :languages, :iso_639_2 add_index :languages, :iso_639_3 end end
Version data entries
689 entries across 681 versions & 23 rubygems