Commit a11454a6 by John Doe

removed bad migration

parent c7974bf9
......@@ -27,7 +27,7 @@ install_plugin Capistrano::SCM::Git
# https://github.com/capistrano/passenger
#
# require "capistrano/rvm"
# require "capistrano/rbenv"
require "capistrano/rbenv"
# require "capistrano/chruby"
require "capistrano/bundler"
require "capistrano/rails/assets"
......
......@@ -58,6 +58,7 @@ group :development, :test do
gem 'terminal-notifier'
gem 'capistrano', '~> 3.6'
gem 'capistrano-rails', '~> 1.2'
gem 'capistrano-rbenv', '~> 2.0'
end
# NOTE: install mailcatcher for development
......
......@@ -61,6 +61,9 @@ GEM
capistrano-rails (1.2.3)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rbenv (2.1.1)
capistrano (~> 3.1)
sshkit (~> 1.3)
capybara (2.12.0)
addressable
mime-types (>= 1.16)
......@@ -337,6 +340,7 @@ DEPENDENCIES
byebug
capistrano (~> 3.6)
capistrano-rails (~> 1.2)
capistrano-rbenv (~> 2.0)
coffee-rails (~> 4.1.0)
cucumber-rails
database_cleaner
......
......@@ -4,6 +4,12 @@ lock "3.8.1"
set :application, "lumen-api"
set :repo_url, "git@git.wattsworth.net:wattsworth/control-api.git"
set :rbenv_type, :user
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all # default value
# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
......@@ -21,7 +27,7 @@ set :deploy_to, "/opt/rails/lumen"
# set :pty, true
# Default value for :linked_files is []
# append :linked_files, "config/database.yml", "config/secrets.yml"
append :linked_files, "config/secrets.yml"
# Default value for linked_dirs is []
# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
......
class CreatePermissions < ActiveRecord::Migration[5.0]
def change
create_table :permissions do |t|
t.integer "nilm_id"
t.integer "user_id"
t.string "role"
t.timestamps
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment