13 lines
261 B
Ruby
13 lines
261 B
Ruby
|
|
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
|