This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var browserSync = require("browser-sync"); | |
browserSync.emitter.on("service:running", function (data) { | |
console.log(data); // this object will have tunnel info | |
}); | |
browserSync({ | |
server: "./app", | |
tunnel: true | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserRenameAvatarToProfileRemoveAAddB < ActiveRecord::Migration | |
# you may want to change these | |
AttachmentColumns = [["file_name", :string], ["content_type", :string], ["file_size", :integer]] | |
# make sure this matches your setup, also have a look in the rename and remove methods | |
AttachmentPath = Rails.root.join("public", "system") | |
def self.rename_attachment(table, old, new) | |
AttachmentColumns.each do |suffix, type| | |
rename_column table, "#{old}_#{suffix}", "#{new}_#{suffix}" | |
end |