Sha256: 769dabbec911e6ee2abd9ea6bf3730422edcd48efa40a7b3167b87bbd975646e

Contents?: true

Size: 772 Bytes

Versions: 136

Compression:

Stored size: 772 Bytes

Contents

class CreateLanguages < ActiveRecord::Migration[4.2]

  # 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

136 entries across 136 versions & 19 rubygems

Version Path
enju_seed-0.5.0.beta.1 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_seed-0.4.0.beta.2 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_circulation-0.3.5 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_biblio-0.3.5 db/migrate/20081025083905_create_languages.rb
enju_library-0.3.5 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_circulation-0.3.4 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_biblio-0.3.4 db/migrate/20081025083905_create_languages.rb
enju_biblio-0.3.3 db/migrate/20081025083905_create_languages.rb
enju_library-0.3.4 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_seed-0.3.3 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_library-0.3.3 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_bookmark-0.3.1 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_event-0.3.2 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_message-0.3.1 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_subject-0.3.1 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_biblio-0.3.2 db/migrate/20081025083905_create_languages.rb
enju_library-0.3.2 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_seed-0.3.2 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_ndl-0.3.1 spec/dummy/db/migrate/20081025083905_create_languages.rb
enju_seed-0.3.1 spec/dummy/db/migrate/20081025083905_create_languages.rb