about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-16 20:32:17 +0200
committerGitHub <noreply@github.com>2017-04-16 20:32:17 +0200
commite4af4898de8ab962bf39ced5d31d88e3fd510538 (patch)
tree7853ee0cf1ee9c2bd0cf22802af9adcf0efed547 /db/migrate
parent6d70a8026309c2d41e2402ec84875ced8e181105 (diff)
Add language detection (#1772)
* Add language detection via WhatLanguage and (de)serialization of it through Atom

* Fix default language in ProcessFeedService

* Re-add newline before 'react-rails' Gem to fix groupings

Fixes Code Climate issue
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170414132105_add_language_to_statuses.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20170414132105_add_language_to_statuses.rb b/db/migrate/20170414132105_add_language_to_statuses.rb
new file mode 100644
index 000000000..59d51cb86
--- /dev/null
+++ b/db/migrate/20170414132105_add_language_to_statuses.rb
@@ -0,0 +1,5 @@
+class AddLanguageToStatuses < ActiveRecord::Migration[5.0]
+  def change
+    add_column :statuses, :language, :string, null: false, default: 'en'
+  end
+end