Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Rails5.1.0 #56

Merged
merged 4 commits into from
May 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/kuroko2/api/job_instances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Kuroko2::Api::JobInstancesController < Kuroko2::Api::ApplicationController

validates :create do
hash :env, description: 'Env variables to launch an instance' do |env|
env.to_h.all? { |_, v| v.is_a?(String) }
env.values.all? { |v| v.is_a?(String) }
end
end

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/001_create_job_definitions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJobDefinitions < ActiveRecord::Migration
class CreateJobDefinitions < ActiveRecord::Migration[5.0]
def change
create_table "job_definitions" do |t|
t.integer "version", limit: 4, default: 0, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/002_create_job_instances.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJobInstances < ActiveRecord::Migration
class CreateJobInstances < ActiveRecord::Migration[5.0]
def change
create_table "job_instances" do |t|
t.integer "job_definition_id", limit: 4
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/003_create_job_schedules.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJobSchedules < ActiveRecord::Migration
class CreateJobSchedules < ActiveRecord::Migration[5.0]
def change
create_table "job_schedules" do |t|
t.integer "job_definition_id", limit: 4
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/004_create_ticks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTicks < ActiveRecord::Migration
class CreateTicks < ActiveRecord::Migration[5.0]
def change
create_table "ticks" do |t|
t.datetime "at"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/005_create_logs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateLogs < ActiveRecord::Migration
class CreateLogs < ActiveRecord::Migration[5.0]
def change
create_table "logs" do |t|
t.integer "job_instance_id", limit: 4
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/006_create_tokens.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTokens < ActiveRecord::Migration
class CreateTokens < ActiveRecord::Migration[5.0]
def change
create_table "tokens" do |t|
t.string "uuid", limit: 36, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/007_create_executions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateExecutions < ActiveRecord::Migration
class CreateExecutions < ActiveRecord::Migration[5.0]
def change
create_table "executions" do |t|
t.string "uuid", limit: 36, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/008_create_process_signals.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProcessSignals < ActiveRecord::Migration
class CreateProcessSignals < ActiveRecord::Migration[5.0]
def change
create_table "process_signals" do |t|
t.string "hostname", limit: 180, default: "", null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/009_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateUsers < ActiveRecord::Migration
class CreateUsers < ActiveRecord::Migration[5.0]
def change
create_table "users" do |t|
t.string "provider", limit: 180, default: "google_oauth2", null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/010_create_admin_assignments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateAdminAssignments < ActiveRecord::Migration
class CreateAdminAssignments < ActiveRecord::Migration[5.0]
def change
create_table "admin_assignments" do |t|
t.integer "user_id", limit: 4, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/011_create_stars.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateStars < ActiveRecord::Migration
class CreateStars < ActiveRecord::Migration[5.0]
def change
create_table "stars" do |t|
t.integer "user_id", limit: 4, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/012_create_workers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateWorkers < ActiveRecord::Migration
class CreateWorkers < ActiveRecord::Migration[5.0]
def change
create_table "workers" do |t|
t.string "hostname", limit: 180, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/018_create_job_definition_tags.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJobDefinitionTags < ActiveRecord::Migration
class CreateJobDefinitionTags < ActiveRecord::Migration[5.0]
def change
create_table "job_definition_tags" do |t|
t.integer "job_definition_id", limit: 4, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/019_create_tags.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTags < ActiveRecord::Migration
class CreateTags < ActiveRecord::Migration[5.0]
def change
create_table "tags" do |t|
t.string "name", limit: 100, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/021_create_memory_expectancies.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateMemoryExpectancies < ActiveRecord::Migration
class CreateMemoryExpectancies < ActiveRecord::Migration[5.0]
def change
create_table :memory_expectancies do |t|
t.integer :expected_value, null: false, default: 0
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/025_create_job_suspend_schedules.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJobSuspendSchedules < ActiveRecord::Migration
class CreateJobSuspendSchedules < ActiveRecord::Migration[5.0]
def change
create_table "job_suspend_schedules" do |t|
t.integer "job_definition_id", limit: 4
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/026_add_webhook_url_to_job_definitions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddWebhookUrlToJobDefinitions < ActiveRecord::Migration
class AddWebhookUrlToJobDefinitions < ActiveRecord::Migration[5.0]
def change
add_column :job_definitions, :webhook_url, :text
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/027_drop_uniq_constraint_user_email.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DropUniqConstraintUserEmail < ActiveRecord::Migration
class DropUniqConstraintUserEmail < ActiveRecord::Migration[5.0]
def up
remove_index :users, name: "email"
add_index :users, :email, name: "email", using: :btree
Expand Down
Loading