hello rubocop
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateAuthentications < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :authentications do |t|
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateForms < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :forms do |t|
|
||||
@@ -7,7 +9,6 @@ class CreateForms < ActiveRecord::Migration[6.0]
|
||||
t.string :token
|
||||
t.string :thank_you_url
|
||||
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateSubmissions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :submissions do |t|
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This migration comes from active_storage (originally 20170806125915)
|
||||
class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
@@ -10,7 +12,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
|
||||
t.string :checksum, null: false
|
||||
t.datetime :created_at, null: false
|
||||
|
||||
t.index [ :key ], unique: true
|
||||
t.index [:key], unique: true
|
||||
end
|
||||
|
||||
create_table :active_storage_attachments do |t|
|
||||
@@ -20,7 +22,7 @@ class CreateActiveStorageTables < ActiveRecord::Migration[5.2]
|
||||
|
||||
t.datetime :created_at, null: false
|
||||
|
||||
t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true
|
||||
t.index %i[record_type record_id name blob_id], name: 'index_active_storage_attachments_uniqueness', unique: true
|
||||
t.foreign_key :active_storage_blobs, column: :blob_id
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddLockboxColumns < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :authentications, :access_token_ciphertext, :text
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddMetadataToSubmissions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :submissions, :remote_ip, :string
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSequentialIdToSubmissions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :submissions, :sequential_id, :integer
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddTokenToAttachments < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :active_storage_attachments, :token, :string
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SorceryCore < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :users, :crypted_password, :string
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddAirtableSupport < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :forms, :airtable_app_key_ciphertext, :string
|
||||
|
||||
Reference in New Issue
Block a user