11 lines
225 B
Ruby
11 lines
225 B
Ruby
class CreateBudgetGroup < ActiveRecord::Migration
|
|
def change
|
|
create_table :budget_groups do |t|
|
|
t.references :budget
|
|
t.string :name, limit: 50
|
|
end
|
|
|
|
add_index :budget_groups, :budget_id
|
|
end
|
|
end
|