Skip to content

Instantly share code, notes, and snippets.

@xanhast
xanhast / index.html
Last active December 21, 2017 15:44
wip
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://unpkg.com/d3-3d/build/d3-3d.min.js"></script>
<body>
<svg width="960" height="500"></svg>
<style type="text/css">
button {
position: absolute;
right: 10px;

Confused. I have some code in a migration that only works when I run rake db:rollback db:migrate but not if I run rake db:rollback then rake db:migrate.

Migration:

# ...add_latitude_and_longitude_to_organisation.rb
class AddLatitudeAndLongitudeToOrganisation < ActiveRecord::Migration
  def up
    add_column :organisations, :latitude, :float
    add_column :organisations, :longitude, :float