Sha256: fbb50d8bb55fa87cc457f8708893ae295a0a2126fa3c48bdcac0934be49f8b88
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
class Create<%= table_name.camelize %> < ActiveRecord::Migration def change create_table :<%= table_name %> do |t| t.string :app_name, null: false t.string :section, null: false t.string :path, null: false t.string :name, null: false t.string :value, null: false t.string :note t.timestamps end add_index :<%= table_name %>, [:app_name, :section, :path, :name], unique: true end end
Version data entries
3 entries across 3 versions & 1 rubygems