source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/mobile_devices.rb
Ruby
bsd-3-clause
92
master
383
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :mobile_device do os 'ios' sequence(:push_token) {|n| "...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/zones.rb
Ruby
bsd-3-clause
92
master
361
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :zone do sequence(:name) { |n| "Zone #{n}" } color { Zo...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/accounts.rb
Ruby
bsd-3-clause
92
master
383
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :account do sequence(:name) { |n| "Activity #{n}" } bra...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/applications.rb
Ruby
bsd-3-clause
92
master
569
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :application do sequence(:name) { |n| "Test application #{n...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/beacons.rb
Ruby
bsd-3-clause
92
master
429
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :beacon do sequence(:name) { |n| "Beacon #{n}" } accou...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/extensions.rb
Ruby
bsd-3-clause
92
master
330
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :extension do sequence(:name) { |n| "Test extension #{n}" }...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/admins.rb
Ruby
bsd-3-clause
92
master
544
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :admin do sequence(:email) { |n| "admin-#{n}@example.c...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/users.rb
Ruby
bsd-3-clause
92
master
324
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :user do sequence(:client_id) { |n| "client-#{n}" } end e...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/factories/triggers.rb
Ruby
bsd-3-clause
92
master
684
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### FactoryGirl.define do factory :trigger do event_type { 'enter' } type { 'BeaconTrigge...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/support/foo_extension.rb
Ruby
bsd-3-clause
92
master
886
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module FooExtension def self.registered_name "Foo" end def self.config OpenStruc...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/support/request_helper.rb
Ruby
bsd-3-clause
92
master
687
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### module RequestHelper # Aliases request methods with json_ prefix for using HTTP verbs with H...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/support/s2s_api_shared_context.rb
Ruby
bsd-3-clause
92
master
962
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### RSpec.shared_context "S2S API shared", s2s: true do let(:admin) { FactoryGirl.create...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/zone_spec.rb
Ruby
bsd-3-clause
92
master
902
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe Zone do describe 'validation' do let(:account) { F...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/activity_spec.rb
Ruby
bsd-3-clause
92
master
1,941
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe Activity do describe '#notification_for_device' do ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/beacon_spec.rb
Ruby
bsd-3-clause
92
master
2,440
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe Beacon do describe 'validation' do let(:account) { ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/event_processor/message_spec.rb
Ruby
bsd-3-clause
92
master
1,701
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe EventProcessor::Message do let(:params) do { ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/event_processor/event_dispatcher_spec.rb
Ruby
bsd-3-clause
92
master
1,043
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe EventProcessor::EventDispatcher do let(:event) { ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/models/event_processor/message_dispatcher_spec.rb
Ruby
bsd-3-clause
92
master
4,977
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe EventProcessor::MessageDispatcher do let(:application)...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/beacon_serializer_spec.rb
Ruby
bsd-3-clause
92
master
587
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe BeaconSerializer do let!(:beacon) { FactoryGirl.create(:beac...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/activity_serializer_spec.rb
Ruby
bsd-3-clause
92
master
546
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe ActivitySerializer do let!(:activity) { FactoryGirl.create(:...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/zone_trigger_serializer_spec.rb
Ruby
bsd-3-clause
92
master
780
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe ZoneTriggerSerializer do let!(:trigger) { FactoryGirl.create...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/zone_serializer_spec.rb
Ruby
bsd-3-clause
92
master
562
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe ZoneSerializer do let!(:zone) { FactoryGirl.create(:zone) } ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/trigger_serializer_spec.rb
Ruby
bsd-3-clause
92
master
793
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe TriggerSerializer do let!(:trigger) { FactoryGirl.create(:be...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/serializers/beacon_trigger_serializer_spec.rb
Ruby
bsd-3-clause
92
master
785
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' describe BeaconTriggerSerializer do let!(:trigger) { FactoryGirl.crea...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
spec/jobs/event_job_spec.rb
Ruby
bsd-3-clause
92
master
983
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require 'rails_helper' RSpec.describe EventJob do let(:job) { described_class.new } let(:...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/application.rb
Ruby
bsd-3-clause
92
master
2,387
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require File.expand_path('../boot', __FILE__) # Pick the frameworks you want: require "active_...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/routes.rb
Ruby
bsd-3-clause
92
master
4,982
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require_relative '../lib/app_status' BeaconControl::Application.routes.draw do mount( Ap...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/environment.rb
Ruby
bsd-3-clause
92
master
375
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### # Load the Rails application. require File.expand_path('../application', __FILE__) # Initializ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/app_config.rb
Ruby
bsd-3-clause
92
master
2,527
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### require_relative '../lib/application_config' AppConfig = ApplicationConfig.new do config_key ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/environments/test.rb
Ruby
bsd-3-clause
92
master
1,873
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suit...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/environments/production.rb
Ruby
bsd-3-clause
92
master
3,618
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/environments/development.rb
Ruby
bsd-3-clause
92
master
1,812
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web serv...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/session_store.rb
Ruby
bsd-3-clause
92
master
286
# Be sure to restart your server when you modify this file. if AppConfig.landing_page_url.present? Rails.application.config.session_store :cookie_store, key: '_beacon_os_session', domain: :all else Rails.application.config.session_store :cookie_store, key: '_beacon_os_session' end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/correlation_logs.rb
Ruby
bsd-3-clause
92
master
4,835
require "active_support/log_subscriber" module Rails module Rack class Logger < ActiveSupport::LogSubscriber alias_method :original_started_request_message, :started_request_message def started_request_message(request) RequestInfo.new(request) original_started_request_message...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/simple_form.rb
Ruby
bsd-3-clause
92
master
5,798
# Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| # Wrappers are used by the form builder to generate a # complete input. You can remove any component from the # wrapper, change the order or even add your own to the # stack. The options given below are used to...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/wrap_parameters.rb
Ruby
bsd-3-clause
92
master
520
# Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. #ActiveSupport.on_load(:action_controller) do # wrap_parameters...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/doorkeeper.rb
Ruby
bsd-3-clause
92
master
4,490
Doorkeeper.configure do # Change the ORM that doorkeeper will use. # Currently supported options are :active_record, :mongoid2, :mongoid3, # :mongoid4, :mongo_mapper orm :active_record resource_owner_from_credentials do |routes| case request.path_parameters[:scope] when "api" Authenticator::Mob...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/rpush.rb
Ruby
bsd-3-clause
92
master
4,630
Rpush.configure do |config| # Supported clients are :active_record, :redis and :mongoid config.client = :active_record # Options passed to Redis.new # config.redis_options = {} # Frequency in seconds to check for new notifications. config.push_poll = 2 # The maximum number of notifications to load fro...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/active_job.rb
Ruby
bsd-3-clause
92
master
511
Sidekiq.configure_client do |config| config.client_middleware do |chain| chain.add Sidekiq::Status::ClientMiddleware end config.redis = { url: AppConfig.redis_url, namespace: 'beacon-control' } end Sidekiq.configure_server do |config| config.client_middleware do |chain| chain.add Sidekiq::Status::Clien...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/simple_form_bootstrap.rb
Ruby
bsd-3-clause
92
master
2,690
SimpleForm::FormBuilder.map_type :boolean, to: BeaconBooleanInput # Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| config.wrappers :bootstrap, tag: 'div', class: 'form-group', error_class: 'error has-error' do |b| b.use :html5 b.use :placeholder b.use ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/assets.rb
Ruby
bsd-3-clause
92
master
495
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path # Rails.application.config.assets.paths << Emoji.images_path # Precompile additional ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/devise.rb
Ruby
bsd-3-clause
92
master
11,389
Devise.setup do |config| config.secret_key = AppConfig.secret_key_base config.mailer = CustomDeviseMailer require 'devise/orm/active_record' # ==> Configuration for any authentication mechanism # Configure which keys are used when authenticating a user. The default is # just :email. You can configure it t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
config/initializers/logger.rb
Ruby
bsd-3-clause
92
master
1,583
class BaseFormatter < ::Logger::Formatter private def msg2str(msg) case msg when ::String msg.squish when ::Exception "#{ msg.message } (#{ msg.class })\n #{(msg.backtrace || []).join("\n")}" else msg.inspect end end def request_env Thread.current[:request_env] || {} ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/schema.rb
Ruby
bsd-3-clause
92
master
21,154
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/seeds.rb
Ruby
bsd-3-clause
92
master
1,788
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### brand_factory = Brand::Factory.new(name: "Beacon OS") brand = brand_factory.create email = ENV...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150122092552_create_mobile_devices.rb
Ruby
bsd-3-clause
92
master
731
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateMobileDevices < ActiveRecord::Migration def change create_table :mobile_devic...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150114120017_add_scopes_to_oauth_applications.rb
Ruby
bsd-3-clause
92
master
388
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddScopesToOauthApplications < ActiveRecord::Migration def change add_column :oauth...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150715123712_rpush_2_1_0_updates.rb
Ruby
bsd-3-clause
92
master
329
class Rpush210Updates < ActiveRecord::Migration def self.up add_column :rpush_notifications, :url_args, :text, null: true add_column :rpush_notifications, :category, :string, null: true end def self.down remove_column :rpush_notifications, :url_args remove_column :rpush_notifications, :category ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141107093146_create_beacon_presence_stats.rb
Ruby
bsd-3-clause
92
master
560
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateBeaconPresenceStats < ActiveRecord::Migration def change create_table :beacon...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150518083738_remove_trigger_id_from_activities.rb
Ruby
bsd-3-clause
92
master
564
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RemoveTriggerIdFromActivities < ActiveRecord::Migration def up Activity.where.not(t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140925105330_add_zones.rb
Ruby
bsd-3-clause
92
master
435
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddZones < ActiveRecord::Migration def change create_table :zones do |t| t.st...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140320141825_create_extensions.rb
Ruby
bsd-3-clause
92
master
416
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateExtensions < ActiveRecord::Migration def change create_table :extensions do |...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150529084304_fix_beacons_count.rb
Ruby
bsd-3-clause
92
master
654
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class FixBeaconsCount < ActiveRecord::Migration class Beacon < ActiveRecord::Base belongs...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140509142114_add_payload_to_activity.rb
Ruby
bsd-3-clause
92
master
345
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddPayloadToActivity < ActiveRecord::Migration def change add_column :activities, :...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141010080746_rename_event_extensions_to_extensions.rb
Ruby
bsd-3-clause
92
master
728
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RenameEventExtensionsToExtensions < ActiveRecord::Migration def change drop_table ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150124141054_remove_extensions_from_database.rb
Ruby
bsd-3-clause
92
master
1,042
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RemoveExtensionsFromDatabase < ActiveRecord::Migration def change drop_table :exten...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140804161437_add_lat_and_lng_to_beacons.rb
Ruby
bsd-3-clause
92
master
430
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddLatAndLngToBeacons < ActiveRecord::Migration def change add_column :beacons, :la...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141006145426_add_type_to_triggers.rb
Ruby
bsd-3-clause
92
master
428
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddTypeToTriggers < ActiveRecord::Migration class Trigger < ActiveRecord::Base end ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150428080849_add_test_to_applications.rb
Ruby
bsd-3-clause
92
master
364
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddTestToApplications < ActiveRecord::Migration def change add_column :applications...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140717125019_drop_name_column_from_triggers.rb
Ruby
bsd-3-clause
92
master
342
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class DropNameColumnFromTriggers < ActiveRecord::Migration def change remove_column :trig...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140910085816_rpush_2_0_0_updates.rb
Ruby
bsd-3-clause
92
master
2,499
class Rpush200Updates < ActiveRecord::Migration module Rpush class App < ActiveRecord::Base self.table_name = 'rpush_apps' end class Notification < ActiveRecord::Base self.table_name = 'rpush_notifications' end end def self.update_type(model, from, to) model.where(type: from).upd...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150325114219_add_role_to_admins.rb
Ruby
bsd-3-clause
92
master
348
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddRoleToAdmins < ActiveRecord::Migration def change add_column :admins, :role, :in...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140321125154_create_applications_extensions.rb
Ruby
bsd-3-clause
92
master
486
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateApplicationsExtensions < ActiveRecord::Migration def change create_table :app...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150124125549_update_model_relations.rb
Ruby
bsd-3-clause
92
master
611
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class UpdateModelRelations < ActiveRecord::Migration def change remove_index :applicat...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150515091857_create_triggers_sources.rb
Ruby
bsd-3-clause
92
master
487
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateTriggersSources < ActiveRecord::Migration def change create_table :triggers_s...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140806151652_create_accounts.rb
Ruby
bsd-3-clause
92
master
417
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateAccounts < ActiveRecord::Migration def change create_table :accounts do |t| ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140910085815_add_rpush.rb
Ruby
bsd-3-clause
92
master
13,664
# NOTE TO THE CURIOUS. # # Congratulations on being a diligent developer and vetting the migrations # added to your project! # # You're probably thinking "This migration is huge!". It is, but that doesn't # mean it'll take a long time to run, or that the reason for it being # this size is because of lousy developers. #...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140805124442_remove_unique_id_number_index.rb
Ruby
bsd-3-clause
92
master
359
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RemoveUniqueIdNumberIndex < ActiveRecord::Migration def change remove_index :coupon...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140508093529_create_applications_event_extensions.rb
Ruby
bsd-3-clause
92
master
665
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateApplicationsEventExtensions < ActiveRecord::Migration def change create_table...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150929132753_create_beacon_proximity_fields.rb
Ruby
bsd-3-clause
92
master
430
class CreateBeaconProximityFields < ActiveRecord::Migration def up create_table :beacon_proximity_fields do |t| t.string :name t.string :value t.belongs_to :beacon, index: true t.timestamps null: false end add_foreign_key :beacon_proximity_fields, :beacons Beacon.all.each do |...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140730122442_create_event_extension_assignments.rb
Ruby
bsd-3-clause
92
master
527
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateEventExtensionAssignments < ActiveRecord::Migration def change create_table :...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150421112348_create_brands.rb
Ruby
bsd-3-clause
92
master
398
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateBrands < ActiveRecord::Migration def change create_table :brands do |t| ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150601144754_add_walkthrough_to_admins.rb
Ruby
bsd-3-clause
92
master
366
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddWalkthroughToAdmins < ActiveRecord::Migration def change add_column :admins, :wa...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150521132628_add_beacons_count_to_zones.rb
Ruby
bsd-3-clause
92
master
646
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddBeaconsCountToZones < ActiveRecord::Migration class Beacon < ActiveRecord::Base ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140730125938_move_data_to_ee_assignments.rb
Ruby
bsd-3-clause
92
master
968
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class MoveDataToEeAssignments < ActiveRecord::Migration def up if ActiveRecord::Base.conn...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150508142632_add_correlation_id_to_users.rb
Ruby
bsd-3-clause
92
master
418
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddCorrelationIdToUsers < ActiveRecord::Migration def change add_column :admins, ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150421112721_add_brand_id_to_accounts.rb
Ruby
bsd-3-clause
92
master
360
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddBrandIdToAccounts < ActiveRecord::Migration def change add_column :accounts, :br...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141013123226_change_beacons_to_belongs_to_accounts.rb
Ruby
bsd-3-clause
92
master
709
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class Beacon < ActiveRecord::Base belongs_to :admin belongs_to :account end class Account ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140319102517_devise_create_admins.rb
Ruby
bsd-3-clause
92
master
1,614
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class DeviseCreateAdmins < ActiveRecord::Migration def change create_table(:admins) do |t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150413092622_create_extension_settings.rb
Ruby
bsd-3-clause
92
master
510
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateExtensionSettings < ActiveRecord::Migration def change create_table :extensio...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150326120850_add_manager_id_to_beacons_and_zones.rb
Ruby
bsd-3-clause
92
master
402
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddManagerIdToBeaconsAndZones < ActiveRecord::Migration def change add_column :beac...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140318150120_create_doorkeeper_tables.rb
Ruby
bsd-3-clause
92
master
1,635
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateDoorkeeperTables < ActiveRecord::Migration def change create_table :oauth_app...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140730145817_remove_event_extensions_habtm.rb
Ruby
bsd-3-clause
92
master
718
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class RemoveEventExtensionsHabtm < ActiveRecord::Migration def up drop_table :application...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140806153251_add_reference_to_admin.rb
Ruby
bsd-3-clause
92
master
420
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddReferenceToAdmin < ActiveRecord::Migration def change add_column :admins, :accou...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150515095220_add_activity_id_to_triggers.rb
Ruby
bsd-3-clause
92
master
356
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddActivityIdToTriggers < ActiveRecord::Migration def change add_reference :trigger...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140331135016_add_event_type_to_trigger.rb
Ruby
bsd-3-clause
92
master
367
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddEventTypeToTrigger < ActiveRecord::Migration def change add_column :triggers, :e...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141106153724_create_zone_presence_stats.rb
Ruby
bsd-3-clause
92
master
556
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateZonePresenceStats < ActiveRecord::Migration def change create_table :zone_pre...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140412143422_add_app_id_to_triggers.rb
Ruby
bsd-3-clause
92
master
391
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddAppIdToTriggers < ActiveRecord::Migration def change add_column :triggers, :appl...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150928060329_create_beacon_configs.rb
Ruby
bsd-3-clause
92
master
299
class CreateBeaconConfigs < ActiveRecord::Migration def change create_table :beacon_configs do |t| t.belongs_to :beacon, index: true t.string :data t.datetime :beacon_updated_at t.timestamps null: false end add_foreign_key :beacon_configs, :beacons end end
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150124094727_add_application_id_to_users.rb
Ruby
bsd-3-clause
92
master
451
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddApplicationIdToUsers < ActiveRecord::Migration def change add_reference :users, ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150303101219_create_application_settings.rb
Ruby
bsd-3-clause
92
master
581
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateApplicationSettings < ActiveRecord::Migration def change create_table :applic...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150526130552_add_test_flag_to_triggers.rb
Ruby
bsd-3-clause
92
master
360
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddTestFlagToTriggers < ActiveRecord::Migration def change add_column :triggers, :t...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140508090613_create_event_extensions.rb
Ruby
bsd-3-clause
92
master
419
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateEventExtensions < ActiveRecord::Migration def change create_table :event_exte...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140326132500_create_activities.rb
Ruby
bsd-3-clause
92
master
435
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateActivities < ActiveRecord::Migration def change create_table :activities do |...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140711120841_create_custom_attributes.rb
Ruby
bsd-3-clause
92
master
471
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class CreateCustomAttributes < ActiveRecord::Migration def change create_table :custom_at...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20160127133722_remove_beacons_count_from_zones.rb
Ruby
bsd-3-clause
92
master
503
class RemoveBeaconsCountFromZones < ActiveRecord::Migration class Beacon < ActiveRecord::Base belongs_to :zone, counter_cache: true end class Zone < ActiveRecord::Base has_many :beacons end def change reversible do |dir| dir.up do remove_column :zones, :beacons_count end ...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20141006120634_add_description_to_zones.rb
Ruby
bsd-3-clause
92
master
345
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddDescriptionToZones < ActiveRecord::Migration def change add_column :zones, :desc...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140729112713_add_default_beacon_uuid_to_admins.rb
Ruby
bsd-3-clause
92
master
363
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddDefaultBeaconUuidToAdmins < ActiveRecord::Migration def change add_column :admin...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20150706111028_create_old_passwords.rb
Ruby
bsd-3-clause
92
master
464
class CreateOldPasswords < ActiveRecord::Migration def change create_table :old_passwords do |t| t.string :encrypted_password, :null => false t.string :password_salt t.string :password_archivable_type, :null => false t.integer :password_archivable_id, :null => false t.datetime :creat...
github
upnext/BeaconControl
https://github.com/upnext/BeaconControl
db/migrate/20140804082822_add_id_number_and_unique_id_number_to_coupons.rb
Ruby
bsd-3-clause
92
master
578
### # Copyright (c) 2015, Upnext Technologies Sp. z o.o. # All rights reserved. # # This source code is licensed under the BSD 3-Clause License found in the # LICENSE.txt file in the root directory of this source tree. ### class AddIdNumberAndUniqueIdNumberToCoupons < ActiveRecord::Migration def change add_colu...