Sha256: 1353e04cf9a11d27b30c9b6b0eb9420d8ad2f1153c0e92785f7c87b26ac91700

Contents?: true

Size: 463 Bytes

Versions: 475

Compression:

Stored size: 463 Bytes

Contents

class CreateMessageTemplates < ActiveRecord::Migration
  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

475 entries across 468 versions & 22 rubygems

Version Path
enju_loc-0.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_bookmark-0.2.0.beta.5 spec/dummy/db/migrate/149_create_message_templates.rb
enju_question-0.2.0.beta.4 spec/dummy/db/migrate/149_create_message_templates.rb
enju_purchase_request-0.2.0.beta.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_news-0.2.0.beta.2 spec/dummy/db/migrate/149_create_message_templates.rb
enju_subject-0.2.0.beta.4 spec/dummy/db/migrate/149_create_message_templates.rb
enju_circulation-0.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_message-0.2.0.beta.4 db/migrate/149_create_message_templates.rb
enju_library-0.2.0.beta.9 spec/dummy/db/migrate/149_create_message_templates.rb
enju_leaf-1.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_seed-0.2.0.beta.6 spec/dummy/db/migrate/149_create_message_templates.rb
enju_bookmark-0.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.2.0.beta.8 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.2.0.beta.7 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.2.0.beta.6 spec/dummy/db/migrate/149_create_message_templates.rb
enju_event-0.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_message-0.2.0.beta.3 db/migrate/149_create_message_templates.rb
enju_biblio-0.2.0.beta.3 spec/dummy/db/migrate/149_create_message_templates.rb
enju_library-0.2.0.beta.5 spec/dummy/db/migrate/149_create_message_templates.rb
enju_ndl-0.2.0.beta.2 spec/dummy/db/migrate/149_create_message_templates.rb