mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
15 lines
419 B
Ruby
15 lines
419 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateAreas < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :areas do |t|
|
|
t.string :name, null: false
|
|
t.references :user, null: false, foreign_key: true
|
|
t.decimal :longitude, precision: 10, scale: 6, null: false
|
|
t.decimal :latitude, precision: 10, scale: 6, null: false
|
|
t.integer :radius, null: false
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|