diff options
author | Jon McCartie <jon@mccartie.com> | 2015-09-24 21:57:40 -0700 |
---|---|---|
committer | Jon McCartie <jon@mccartie.com> | 2015-10-20 14:25:06 -0700 |
commit | fb42c492a7eff58f45867ea50440d938648cdb48 (patch) | |
tree | 637da2c8759b7a854b65b45798d5a099b2e261d1 /activerecord/lib/rails/generators | |
parent | 7b92798d2fee012bf683c513fb3864a9143a6f71 (diff) | |
download | rails-fb42c492a7eff58f45867ea50440d938648cdb48.tar.gz rails-fb42c492a7eff58f45867ea50440d938648cdb48.tar.bz2 rails-fb42c492a7eff58f45867ea50440d938648cdb48.zip |
Set active_record config for always creating uuids in generators
Diffstat (limited to 'activerecord/lib/rails/generators')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb b/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb index 5b3e57dcf6..4a7deb3c75 100644 --- a/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb +++ b/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb @@ -1,6 +1,6 @@ class <%= migration_class_name %> < ActiveRecord::Migration def change - create_table :<%= table_name %> do |t| + create_table :<%= table_name %><%= id_kind %> do |t| <% attributes.each do |attribute| -%> <% if attribute.password_digest? -%> t.string :password_digest<%= attribute.inject_options %> |