20170626000001_locale_add_direction.rb 245 B

123456789
  1. class LocaleAddDirection < ActiveRecord::Migration[4.2]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. add_column :locales, :dir, :string, limit: 9, null: false, default: 'ltr'
  6. end
  7. end