Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Doyle seanpdoyle

View GitHub Profile
@seanpdoyle
seanpdoyle / 20140110012324_create_places.rb
Last active Jan 2, 2016
Code example for `paperclip-location`
View 20140110012324_create_places.rb
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