1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/rails/generators
Derek Prior 323334a775 Generators add foreign keys on references
If you run a generator such as:

```
rails generate model accounts supplier:references
```

The resulting migration will now add the corresponding foreign key
constraint unless the reference was specified to be polymorphic.
2014-11-25 20:22:58 -02:00
..
active_record Generators add foreign keys on references 2014-11-25 20:22:58 -02:00
active_record.rb Make .next_migration_number reusable for third party AR generators. 2013-09-30 15:03:55 +02:00