testy/db/migrate/20260517111107_create_stores.rb

13 lines
261 B
Ruby
Raw Normal View History

2026-05-17 11:12:43 +00:00
class CreateStores < ActiveRecord::Migration[8.0]
def change
create_table :stores do |t|
t.string :name
t.float :latitude
t.float :longitude
t.references :chain, null: false, foreign_key: true
t.timestamps
end
end
end