Parent
<%= migration_class_name %> def change create_table :authentications do |t| t.integer :<%= tableized_model_class.singularize %>_id, null: false t.string :provider, :uid, null: false t.timestamps null: false end add_index :authentications, [:provider, :uid] end end