13 lines
428 B
Ruby
13 lines
428 B
Ruby
class CreateExpenses < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :expenses do |t|
|
|
t.string :description, default: "", null: false
|
|
t.decimal :payment, default: 0.00, null: false, precision: 8, scale: 2
|
|
t.integer :period, default: 0, null: false
|
|
t.boolean :autopaid, default: false, null: false
|
|
t.boolean :estimated, default: false, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|