Sha256: a35faff929082dca74ec93ac3744ee703e601d6595fce9ff2a8cc4860892fb1d

Contents?: true

Size: 245 Bytes

Versions: 52

Compression:

Stored size: 245 Bytes

Contents

class FixExpenseState < ActiveRecord::Migration[5.0]
  def change
    Dorsale::ExpenseGun::Expense.where(state: "submited").update_all(state: "submitted")
    Dorsale::ExpenseGun::Expense.where(state: "new").update_all(state: "draft")
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
dorsale-4.0.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.20.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.19.1 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.19.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.18.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.17.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.16.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.15.0 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.11 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.10 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.9 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.8 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.7 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.6 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.5 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.4 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.3 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.2 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.1 db/migrate/20170127151610_fix_expense_state.rb
dorsale-3.14.0 db/migrate/20170127151610_fix_expense_state.rb