Skip to content

Instantly share code, notes, and snippets.

Sean Doyle seanpdoyle

Block or report user

Report or block seanpdoyle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
You can’t perform that action at this time.