Small fix to fi locale and whitespace changes to migrate script

This commit is contained in:
Jyri-Petteri Paloposki 2021-01-06 15:33:13 +02:00
parent 589b58c046
commit 83dd49a52f
2 changed files with 3 additions and 4 deletions

View file

@ -178,7 +178,6 @@ fi:
new_context_post: "' luodaan. Oletko varma?"
new_context_pre: Uusi asiayhteys '
no_contexts_: 'Ei asiayhteyksiä '
last_completed_in_context: "(last %{number})"
new_context_post: "' will be also created. Are you sure?"
new_context_pre: New context '
no_contexts_: 'No contexts '

View file

@ -1,12 +1,12 @@
class AddUserId < ActiveRecord::Migration[5.2]
class Project < ActiveRecord::Base; end
class Context < ActiveRecord::Base; end
class Todo < ActiveRecord::Base; end
def self.up
add_column :contexts, :user_id, :integer, :default => 1
add_column :projects, :user_id, :integer, :default => 1
add_column :projects, :user_id, :integer, :default => 1
add_column :todos, :user_id, :integer, :default => 1
Context.all.each { |context| context.user_id = 1 }
Project.all.each { |project| project.user_id = 1 }