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

Version Path
enju_biblio-0.3.18 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.17 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.16 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.3.11 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.15 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.3.11 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.3.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_nii-0.3.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_subject-0.3.4 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.3.10 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.3.6 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.3.10 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.14 spec/dummy/db/migrate/149_create_message_templates.rb
enju_event-0.3.5 spec/dummy/db/migrate/149_create_message_templates.rb
enju_bookmark-0.3.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_seed-0.3.6 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.13 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.3.9 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.3.5 spec/dummy/db/migrate/149_create_message_templates.rb
enju_biblio-0.3.12 spec/dummy/db/migrate/149_create_message_templates.rb