hello rubocop

This commit is contained in:
2020-04-28 01:40:06 +02:00
parent 2e5954124d
commit fa348cdeeb
69 changed files with 382 additions and 202 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateAuthentications < ActiveRecord::Migration[6.0]
def change
create_table :authentications do |t|

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateUsers < ActiveRecord::Migration[6.0]
def change
create_table :users do |t|

View File

@@ -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

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateSubmissions < ActiveRecord::Migration[6.0]
def change
create_table :submissions do |t|

View File

@@ -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

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddLockboxColumns < ActiveRecord::Migration[6.0]
def change
add_column :authentications, :access_token_ciphertext, :text

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddMetadataToSubmissions < ActiveRecord::Migration[6.0]
def change
add_column :submissions, :remote_ip, :string

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddSequentialIdToSubmissions < ActiveRecord::Migration[6.0]
def change
add_column :submissions, :sequential_id, :integer

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddTokenToAttachments < ActiveRecord::Migration[6.0]
def change
add_column :active_storage_attachments, :token, :string

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class SorceryCore < ActiveRecord::Migration[6.0]
def change
add_column :users, :crypted_password, :string

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
class AddAirtableSupport < ActiveRecord::Migration[6.0]
def change
add_column :forms, :airtable_app_key_ciphertext, :string