Class: CreateGlobalizeTranslationSuggestions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/exvo_globalize/templates/suggestions_migration.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/exvo_globalize/templates/suggestions_migration.rb', line 13

def self.down
  drop_table :globalize_translation_suggestions
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/exvo_globalize/templates/suggestions_migration.rb', line 2

def self.up
  create_table :globalize_translation_suggestions do |t|
    t.string :key
    t.text :value
    t.integer :votes, :default => 1
    t.timestamps

    t.references :globalize_translations
  end
end