Sha256: a8c0cd65e26e27ecd07b7035df3b69ad4f9da8d94c5f295ca04ed7b53c65e710

Contents?: true

Size: 490 Bytes

Versions: 38

Compression:

Stored size: 490 Bytes

Contents

class CreateExpenses < ActiveRecord::Migration
  def change
    create_table :expenses, options: 'DEFAULT CHARSET=utf8' do |t|
      t.references :expense_category, index: true
      t.references :currency_period, index: true
      t.decimal :expense_value
      t.references :listing, index: true, null: false

      t.timestamps
    end
    add_index :expenses, [:expense_category_id, :currency_period_id, :expense_value], name: "index_on_category_and_currency_period_and_value"
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
reso-0.1.6.7 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.6 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.5 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.4 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.3 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.2 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6.1 lib/generators/reso/templates/create_expenses.rb
reso-0.1.6 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.11 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.10 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.9 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.7 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.6 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.5 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.4 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.3 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.2 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.1 lib/generators/reso/templates/create_expenses.rb
reso-0.1.5.0 lib/generators/reso/templates/create_expenses.rb
reso-0.1.4.10 lib/generators/reso/templates/create_expenses.rb