18 lines
536 B
18 lines
536 B
class CreateLaRentRanges < ActiveRecord::Migration[7.0] |
|
def change |
|
create_table :la_rent_ranges do |t| |
|
t.integer :ranges_rent_id |
|
t.integer :lettype |
|
t.string :la |
|
t.integer :beds |
|
t.decimal :soft_min, precision: 10, scale: 2 |
|
t.decimal :soft_max, precision: 10, scale: 2 |
|
t.decimal :hard_min, precision: 10, scale: 2 |
|
t.decimal :hard_max, precision: 10, scale: 2 |
|
t.integer :start_year |
|
|
|
t.index %i[start_year lettype beds la], unique: true |
|
t.timestamps |
|
end |
|
end |
|
end
|
|
|