diff --git a/config/initializers/sign_database.rb b/config/initializers/sign_database.rb index 8406bc0f8..86e15efc5 100644 --- a/config/initializers/sign_database.rb +++ b/config/initializers/sign_database.rb @@ -4,7 +4,7 @@ deployed = !Rails.env.development? && !Rails.env.test? begin - Rake::Task["dictionary:update"].execute if deployed + Rake::Task['dictionary:update'].execute if deployed rescue StandardError => e warn e end @@ -14,8 +14,8 @@ # we can use common queries and ordering. # There's no ADD COLUMN IF NOT EXISTS, so we just handle the error begin - DictionarySign.connection.execute("ALTER TABLE words ADD COLUMN word text AS (gloss)") + Signbank::Sign.connection.execute('ALTER TABLE words ADD COLUMN word text AS (gloss)') rescue ActiveRecord::StatementInvalid => e - raise e unless e.message == "SQLite3::SQLException: duplicate column name: word" + raise e unless e.message == 'SQLite3::SQLException: duplicate column name: word' end end