You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
433 B
14 lines
433 B
class CreateLaSaleRanges < ActiveRecord::Migration[7.0] |
|
def change |
|
create_table :la_sale_ranges do |t| |
|
t.string :la |
|
t.integer :bedrooms |
|
t.decimal :soft_min, precision: 10, scale: 2 |
|
t.decimal :soft_max, precision: 10, scale: 2 |
|
t.integer :start_year |
|
|
|
t.index %i[start_year bedrooms la], unique: true, name: "index_la_sale_ranges_on_start_year_bedrooms_la" |
|
t.timestamps |
|
end |
|
end |
|
end
|
|
|