Skip to content

Instantly share code, notes, and snippets.

@johnheywardobrien
johnheywardobrien / app.rb
Last active August 29, 2015 14:20 — forked from anonymous/app.rb
require 'bundler'
Bundler.require
require 'sqlite3'
require 'sinatra/activerecord'
require 'active_record'
require 'rake'
require 'time'
require 'date'
class Monitor < ActiveRecord::Base
has_many :calibrations
end
@johnheywardobrien
johnheywardobrien / migrations
Created April 10, 2015 23:16
working on creating my migrations..
class AddMonitors < ActiveRecord::Migration
def change
create_table :monitors do |t|
t.string :tag
t.timestamps null: false
has_many :calibrations
end
end