Added release number to migrations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateUsers < ActiveRecord::Migration
|
||||
class CreateUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :email
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateRetirements < ActiveRecord::Migration
|
||||
class CreateRetirements < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :retirements do |t|
|
||||
t.string :total
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePaidTimeOffs < ActiveRecord::Migration
|
||||
class CreatePaidTimeOffs < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :paid_time_offs do |t|
|
||||
t.integer :user_id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateSchedules < ActiveRecord::Migration
|
||||
class CreateSchedules < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :schedules do |t|
|
||||
t.string :event_type
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateWorkInfos < ActiveRecord::Migration
|
||||
class CreateWorkInfos < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :work_infos do |t|
|
||||
t.integer :user_id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePerformances < ActiveRecord::Migration
|
||||
class CreatePerformances < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :performances do |t|
|
||||
t.integer :user_id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateBenefits < ActiveRecord::Migration
|
||||
class CreateBenefits < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :benefits do |t|
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateMessages < ActiveRecord::Migration
|
||||
class CreateMessages < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :messages do |t|
|
||||
t.integer :creator_id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class AddEncryptedSsnToWorkInfos < ActiveRecord::Migration
|
||||
class AddEncryptedSsnToWorkInfos < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :work_infos, :encrypted_ssn, :binary
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateKeyManagements < ActiveRecord::Migration
|
||||
class CreateKeyManagements < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :key_managements do |t|
|
||||
t.string :iv
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class AddAuthTokenToUsers < ActiveRecord::Migration
|
||||
class AddAuthTokenToUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :users, :auth_token, :string
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePays < ActiveRecord::Migration
|
||||
class CreatePays < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :pays do |t|
|
||||
t.integer :user_id
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateAnalytics < ActiveRecord::Migration
|
||||
class CreateAnalytics < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :analytics do |t|
|
||||
t.string :ip_address
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
# 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.
|
||||
|
||||
Reference in New Issue
Block a user