Sha256: d323f73784c016a7d84db157e9406ff8fabb44d309c5e13402f738d68c2199ff
Contents?: true
Size: 368 Bytes
Versions: 98
Compression:
Stored size: 368 Bytes
Contents
class MakeArticlesTranslatable < ActiveRecord::Migration def up change_table :articles do |t| t.remove :title t.remove :body end Article.create_translation_table!(title: :string, body: :text) end def down change_table :articles do |t| t.string :title t.text :body end drop_table :article_translations end end
Version data entries
98 entries across 98 versions & 1 rubygems