diff options
| author | jpl | 2017-02-14 18:47:22 +0100 | 
|---|---|---|
| committer | jpl | 2017-02-14 18:47:22 +0100 | 
| commit | e49b165161462716d9afda0cad986456483fe2c8 (patch) | |
| tree | 7587bc4cba8f3e2bfc7a4d0813078908e7437405 /db/migrate/20170214172517_create_translations.rb | |
| parent | bbcb181145858f148c4eb5bcd8ed9e06582c535e (diff) | |
| download | chouette-core-e49b165161462716d9afda0cad986456483fe2c8.tar.bz2 | |
fixing i18n issues, updating pagination helper
Diffstat (limited to 'db/migrate/20170214172517_create_translations.rb')
| -rw-r--r-- | db/migrate/20170214172517_create_translations.rb | 17 | 
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  | 
