diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 76b8fac7..72473fca 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -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 ' diff --git a/db/migrate/002_add_user_id.rb b/db/migrate/002_add_user_id.rb index 6e42504f..b1005672 100644 --- a/db/migrate/002_add_user_id.rb +++ b/db/migrate/002_add_user_id.rb @@ -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 }