Sha256: 8eee8014432954fb854f2dd01402a341af91ef6bde5dcfd1f75501360061a5be
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
class InitialSchema < ActiveRecord::Migration[7.0] def change create_table :categories do |t| t.string :name, null: false end create_table :subcategories do |t| t.string :name, null: false t.references :category, null: false, index: true end create_table :items do |t| t.string :name, null: false t.references :subcategory, null: false, index: true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-ajax_filter-0.7.0 | test_app/blog/db/migrate/20230425060707_initial_schema.rb |