Sha256: 4e537cb09db45cf08b17c17d4fe3e698ae66baa7160973f22458c5c9dbca0559

Contents?: true

Size: 414 Bytes

Versions: 334

Compression:

Stored size: 414 Bytes

Contents

class CreateLanguages < ActiveRecord::Migration
  def self.up
    create_table :languages, :force => true do |t|
      t.string :name
      t.string :english_name
      t.string :locale
      t.boolean :supported, :default => true
      t.boolean :is_default, :default => false
    end
    add_index :languages, :name
    add_index :languages, :locale
  end

  def self.down
    drop_table :languages
  end
  
end

Version data entries

334 entries across 276 versions & 14 rubygems

Version Path
muck-engine-3.5.0 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.5.0 db/migrate/20090402234137_create_languages.rb
muck-activities-3.2.2 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.4.0 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.4.0 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.18 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.18 test/db/migrate/20090402234137_create_languages.rb
muck-activities-3.2.1 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.17 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.17 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.16 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.16 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.15 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.15 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.14 db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.14 test/db/migrate/20090402234137_create_languages.rb
muck-services-3.3.3 test/db/migrate/20090402234137_create_languages.rb
muck-users-3.2.12 test/db/migrate/20090402234137_create_languages.rb
muck-users-3.2.11 test/db/migrate/20090402234137_create_languages.rb
muck-engine-3.3.13 test/db/migrate/20090402234137_create_languages.rb