Sha256: 2d22c09152a9c78e96cb6abe24bf4189addb1d70fa4a3ee2961c58e02529dd38

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

class CreateRestaurants < ActiveRecord::Migration[7.0]
  def change
    create_table :restaurants do |t|
      t.string :name, null:false
      t.string :address, null:false, unique:true
      t.text :description, null:false
      t.string :state_code, null:false
      t.string :city, null:false
      t.float :rating, null:false
      t.float :longitude, null:false
      t.float :latitude, null:false
      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
easy_seeds-1.0.4 demo/db/migrate/20221229181317_create_restaurants.rb
easy_seeds-1.0.3 demo/db/migrate/20221229181317_create_restaurants.rb
easy_seeds-1.0.2 demo/db/migrate/20221229181317_create_restaurants.rb
easy_seeds-1.0.0 demo/db/migrate/20221229181317_create_restaurants.rb