The 19 year old gem. This dog can still hunt!
To execute the script, download the demo.rb file locally and execute it with the ruby command:
ruby demo.rbThe 19 year old gem. This dog can still hunt!
To execute the script, download the demo.rb file locally and execute it with the ruby command:
ruby demo.rb| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| gem "rails" | |
| gem "sqlite3", "~> 1.4" |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem "rails" | |
| gem "sqlite3" |
| require 'paperclip' #exclude this line in Rails apps | |
| class CreatePlaces < ActiveRecord::Migration | |
| include Paperclip::Schema #exclude this line in Rails apps | |
| def self.change | |
| create_table :places do |t| | |
| t.boolean :location_locked, default: false, null: false | |
| t.decimal :lat, precision: 10, scale: 15 |