Skip to content

Commit

Permalink
Set ActiveRecord::Migration version
Browse files Browse the repository at this point in the history
[rails 5.1.0] Directly inheriting from ActiveRecord::Migration is not supported.
  • Loading branch information
eisuke committed May 9, 2017
1 parent befff65 commit b732d81
Show file tree
Hide file tree
Showing 19 changed files with 308 additions and 122 deletions.
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

0 comments on commit b732d81

Please sign in to comment.