Sha256: 6dfb0163e72f6812611c71d9f5f2935f5c557f7990c2026f1afc5e4203fe7fde
Contents?: true
Size: 453 Bytes
Versions: 147
Compression:
Stored size: 453 Bytes
Contents
class CreateMessageTemplates < ActiveRecord::Migration[4.2] def self.up create_table :message_templates do |t| t.string :status, null: false t.text :title, null: false t.text :body, null: false t.integer :position t.string :locale, default: I18n.default_locale.to_s t.timestamps end add_index :message_templates, :status, unique: true end def self.down drop_table :message_templates end end
Version data entries
147 entries across 147 versions & 17 rubygems