aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorjpl2017-02-14 18:47:22 +0100
committerjpl2017-02-14 18:47:22 +0100
commite49b165161462716d9afda0cad986456483fe2c8 (patch)
tree7587bc4cba8f3e2bfc7a4d0813078908e7437405 /db/migrate
parentbbcb181145858f148c4eb5bcd8ed9e06582c535e (diff)
downloadchouette-core-e49b165161462716d9afda0cad986456483fe2c8.tar.bz2
fixing i18n issues, updating pagination helper
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170214172517_create_translations.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20170214172517_create_translations.rb b/db/migrate/20170214172517_create_translations.rb
new file mode 100644
index 000000000..689a9130a
--- /dev/null
+++ b/db/migrate/20170214172517_create_translations.rb
@@ -0,0 +1,17 @@
+class CreateTranslations < ActiveRecord::Migration
+ def self.up
+ create_table :translations do |t|
+ t.string :locale
+ t.string :key
+ t.text :value
+ t.text :interpolations
+ t.boolean :is_proc, :default => false
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :translations
+ end
+end