Sha256: c40f1ed01037de72542fad096e2331bd5db334d32699d57e7a0b9f04f7a48e0e

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :sail_settings do |t|
      t.string :name, null: false
      t.text :description
      t.string :value, null: false
      t.integer :cast_type, null: false, limit: 1
      t.timestamps
      t.index ["name"], name: "index_settings_on_name", unique: true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sail-1.4.0 lib/generators/active_record/templates/settings_migration.rb
sail-1.3.0 lib/generators/active_record/templates/settings_migration.rb