class CreateProducts
Public Instance Methods
change()
click to toggle source
# File lib/generators/fetch/products/templates/create_products.rb, line 2 def change create_table :products do |t| t.string :scope t.string :key t.text :data t.timestamps end add_index :products, [:scope, :key], unique: true end