mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 07:34:08 +01:00
Add sorbet typing information to all the files
This commit is contained in:
parent
8b8db1ef7c
commit
cabe2f80ed
263 changed files with 264 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
# Verision 1.0.3 database
|
||||
class CreateTracksDb < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUserId < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Project < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class CreatedAt < ActiveRecord::Migration[5.2]
|
||||
# Current bug in Rails that prevents rename_column working in SQLite
|
||||
# if the column names use symbols instead of strings.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class Notes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :notes do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddProjectDescription < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :projects, :description, :text
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddPreferencesToUserTable < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddSessionsTable < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :sessions do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddSubclassAttrToTodos < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Todo < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUserPrefRefresh < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base; serialize :preferences; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddFirstAndLastNameToUser < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :users, :first_name, :string
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class PrefToShowHideSidebarItems < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base; serialize :preferences; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddPreferencesModel < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base; serialize :preferences; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ConvertPreferences < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base; has_one :preference; serialize :preferences; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ConvertProjectToStateMachine < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Project < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddVerboseActionDescriptorsPreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :verbose_action_descriptors, :boolean, :default => false, :null => false
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUserAuthType < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :users, :auth_type, :string, :default => 'database', :null => false
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUserOpenIdUrl < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :users, :open_id_url, :string
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ConvertTodoToStateMachine < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Todo < ActiveRecord::Base; belongs_to :project; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class PrefToShowHiddenProjectsInSidebar < ActiveRecord::Migration[5.2]
|
||||
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddTimeZonePreference < ActiveRecord::Migration[5.2]
|
||||
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddIndices < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :todos, [:user_id, :state]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class IndexOnUserLogin < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :users, :login
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddFindByNameIndices < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :projects, [:user_id, :name]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddTagSupport < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :taggings do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddProjectTimestamps < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :projects, :created_at, :timestamp
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddContextTimestamps < ActiveRecord::Migration[5.2]
|
||||
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddShowProjectOnTodoDonePreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :show_project_on_todo_done, :boolean, :default => false, :null => false
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddTitleDateFormatPreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :title_date_format, :string, :limit => 255, :default => '%A, %d %B %Y', :null => false
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: true
|
||||
class SetNilTimestamps < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Project < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddDefaultContextToProject < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :projects, :default_context_id, :integer
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddMobileTodosPerPagePreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :mobile_todos_per_page, :integer, :null => false, :default => 6
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddRememberMeToUser < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
rename_column :users, 'password', 'crypted_password' #bug in sqlite requires column names as strings
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class RenameWordToToken < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
rename_column :users, 'word', 'token' #bug in sqlite requires column names as strings
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class UpdateOpenIdUrls < ActiveRecord::Migration[5.2]
|
||||
|
||||
class User < ActiveRecord::Base
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddProjectCompletedAtColumn < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Project < ActiveRecord::Base; end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddIndexToNotes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :notes, [:project_id]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ProjectsContextsRemoveNotNullFromPosition < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
change_column :projects, :position, :integer, {:null => true, :default => nil}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class CreateRecurringTodos < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :recurring_todos do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddSeveralIndexes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :taggings, [:taggable_id, :taggable_type]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddSmsToPreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :sms_email, :string
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ChangeDatesToDatetimes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
change_column :todos, :show_from, :datetime
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUpdatedAtToTodos < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :todos, :updated_at, :timestamp
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class UpgradeOpenId < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :open_id_authentication_associations, :force => true do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class RemoveUserFromTaggings < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
remove_index :taggings, [:tag_id, :taggable_id, :taggable_type]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: true
|
||||
class FixIncorrectlyHiddenTodos < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
hidden_todos_without_project =
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddDefaultTagsToProject < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :projects, :default_tags, :string
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddTodoDependencies < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :dependencies do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddShowAlwaysToRecurringTodo < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :recurring_todos, :show_always, :boolean
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddIndexToTodoState < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :todos, :state
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddLocaleToPreference < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :preferences, :locale, :string
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AdaptToNewAasm < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
change_column_default :todos, :state, nil
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class MakeOldRecurringTodosValidate < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
RecurringTodo.all.each do |rt|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class ChangeCryptedPasswordLength < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
change_column 'users', 'crypted_password', :string, :limit => 60
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddLastReviewedToProject < ActiveRecord::Migration[5.2]
|
||||
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddNextReviewPreferences < ActiveRecord::Migration[5.2]
|
||||
|
||||
def self.up
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddIndicesToDependencyTable < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_index :dependencies, :successor_id
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddRenderedNotes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :todos, 'rendered_notes', :text
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class CreateTolkTables < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
create_table :tolk_locales do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: true
|
||||
class NoDefaultAdminEmail < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
remove_column :preferences, :admin_email
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddStateToContext < ActiveRecord::Migration[5.2]
|
||||
|
||||
class Context < ActiveRecord::Base
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: true
|
||||
class RenameOccurencesToOccurrences < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
rename_column :recurring_todos, :number_of_occurences, :number_of_occurrences
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class RemoveRenderedNotes < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
remove_column :todos, 'rendered_notes'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: true
|
||||
class CreateAttachments < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :attachments do |t|
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class RemoveProjectHiddenStateFromTodos < ActiveRecord::Migration[5.2]
|
||||
class Todo < ActiveRecord::Base
|
||||
has_many :successor_dependencies, :foreign_key => 'successor_id', :class_name => 'Dependency'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# typed: false
|
||||
class AddUserIdToTag < ActiveRecord::Migration[5.2]
|
||||
def self.up
|
||||
add_column :tags, :user_id, :integer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue