Sha256: 8c409e2124ade733780c93644e8263497f2cc62ebf1827739772b1e3b6b97e94
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
class CreateDefaultCategories < ActiveRecord::Migration def change create_table :default_categories do |t| t.references :organization, null: false t.foreign_key :organizations t.string :name, null: false t.timestamps end add_index :default_categories, :id add_index :default_categories, :organization_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_systeem-0.1.0 | test/dummy_app/db/migrate/20140313233913_create_default_categories.rb |