This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :email
|
||||
t.string :password
|
||||
t.boolean :admin
|
||||
t.string :first_name
|
||||
t.string :last_name
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateRetirements < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :retirements do |t|
|
||||
t.string :total
|
||||
t.string :employee_contrib
|
||||
t.string :employer_contrib
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePaidTimeOffs < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :paid_time_offs do |t|
|
||||
t.integer :user_id
|
||||
t.integer :sick_days_taken
|
||||
t.integer :sick_days_earned
|
||||
t.integer :pto_taken
|
||||
t.integer :pto_earned
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateSchedules < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :schedules do |t|
|
||||
t.string :event_type
|
||||
t.date :date_begin
|
||||
t.date :date_end
|
||||
t.string :event_name
|
||||
t.string :event_desc
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateWorkInfos < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :work_infos do |t|
|
||||
t.integer :user_id
|
||||
t.string :income
|
||||
t.string :bonuses
|
||||
t.integer :years_worked
|
||||
t.string :SSN
|
||||
t.date :DoB
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePerformances < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :performances do |t|
|
||||
t.integer :user_id
|
||||
t.date :date_submitted
|
||||
t.integer :score
|
||||
t.string :comments
|
||||
t.integer :reviewer
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateBenefits < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :benefits do |t|
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateMessages < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :messages do |t|
|
||||
t.integer :creator_id
|
||||
t.integer :receiver_id
|
||||
t.text :message
|
||||
t.boolean :read
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
class AddEncryptedSsnToWorkInfos < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :work_infos, :encrypted_ssn, :binary
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateKeyManagements < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :key_managements do |t|
|
||||
t.string :iv
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
class AddAuthTokenToUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :users, :auth_token, :string
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
class CreatePays < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :pays do |t|
|
||||
t.integer :user_id
|
||||
t.string :bank_account_num
|
||||
t.string :bank_routing_num
|
||||
t.integer :percent_of_deposit
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
class CreateAnalytics < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :analytics do |t|
|
||||
t.string :ip_address
|
||||
t.string :referrer
|
||||
t.string :user_agent
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
class RemoveUsersUserId < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
remove_column :users, :user_id, :integer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user