Sha256: c31670a4c6b557b33c4c343c2cd49d1156cf066a7ec1dbb7a425ccb9f5368ea2
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
class CreateCitizenBudgetModelSections < ActiveRecord::Migration def up create_table :citizen_budget_model_sections do |t| t.belongs_to :simulator, index: true t.integer :position t.timestamps end CitizenBudgetModel::Section.create_translation_table!({ title: {type: :string, null: false, default: ''}, description: {type: :text, null: false, default: ''}, modal: {type: :text, null: false, default: ''}, popover: {type: :text, null: false, default: ''}, }) end def down drop_table :citizen_budget_model_sections CitizenBudgetModel::Section.drop_translation_table! end end
Version data entries
4 entries across 4 versions & 1 rubygems